summaryrefslogtreecommitdiff
path: root/sql/net_serv.cc
diff options
context:
space:
mode:
authormsvensson@pilot.blaudden <>2007-05-25 16:48:23 +0200
committermsvensson@pilot.blaudden <>2007-05-25 16:48:23 +0200
commit4ac551f4992b87125d2929953e4888b27231b00a (patch)
treeb0f238bac516d18d817efe352b7aa77f6b01c2fc /sql/net_serv.cc
parent792f6e349d184935cd5a3cdb1c9b0361180cc930 (diff)
parente50116e99e3b4a67a288159c9b6dab8fe94c904b (diff)
downloadmariadb-git-4ac551f4992b87125d2929953e4888b27231b00a.tar.gz
Merge pilot.blaudden:/home/msvensson/mysql/mysql-5.0-maint
into pilot.blaudden:/home/msvensson/mysql/mysql-5.1-new-maint
Diffstat (limited to 'sql/net_serv.cc')
-rw-r--r--sql/net_serv.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/sql/net_serv.cc b/sql/net_serv.cc
index 88a3bdbf3e6..0f38f846515 100644
--- a/sql/net_serv.cc
+++ b/sql/net_serv.cc
@@ -1126,7 +1126,8 @@ void my_net_set_read_timeout(NET *net, uint timeout)
DBUG_PRINT("enter", ("timeout: %d", timeout));
net->read_timeout= timeout;
#ifdef NO_ALARM
- vio_timeout(net->vio, 0, timeout);
+ if (net->vio)
+ vio_timeout(net->vio, 0, timeout);
#endif
DBUG_VOID_RETURN;
}
@@ -1138,7 +1139,8 @@ void my_net_set_write_timeout(NET *net, uint timeout)
DBUG_PRINT("enter", ("timeout: %d", timeout));
net->write_timeout= timeout;
#ifdef NO_ALARM
- vio_timeout(net->vio, 1, timeout);
+ if (net->vio)
+ vio_timeout(net->vio, 1, timeout);
#endif
DBUG_VOID_RETURN;
}