changeset 159:e0193106a95d HEAD

net_accept() set listening socket nonblocking, not the new socket. thanks to james.antill@redhat.com for noticing.
author Timo Sirainen <tss@iki.fi>
date Fri, 06 Sep 2002 16:29:51 +0300
parents a1204e882bc7
children ff05b320482c
files src/lib/network.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/lib/network.c	Thu Sep 05 15:52:49 2002 +0300
+++ b/src/lib/network.c	Fri Sep 06 16:29:51 2002 +0300
@@ -337,7 +337,7 @@
 	if (addr != NULL) sin_get_ip(&so, addr);
 	if (port != NULL) *port = sin_get_port(&so);
 
-        net_set_nonblock(fd, TRUE);
+        net_set_nonblock(ret, TRUE);
 	return ret;
 }