From 80aa4d3d1e842adb54d17c11ac772ca683e0c380 Mon Sep 17 00:00:00 2001 From: robijn Date: Fri, 6 Feb 2004 16:33:55 +0000 Subject: [PATCH] Fixed tiny bug in sock_recv_string that caused some clients to hang. --- shared/sockets.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/sockets.c b/shared/sockets.c index d2df7ad..0c20de1 100644 --- a/shared/sockets.c +++ b/shared/sockets.c @@ -171,7 +171,7 @@ sock_recv_string (int fd, char *dest, size_t maxlen) #endif if (err == -1) { if (errno == EAGAIN) { - if (recv) { + if (recvBytes) { // We've begun to read a string, but no bytes are // available. Loop. continue;