[dovecot-cvs] dovecot/src/lib network.c,1.34,1.35

cras at dovecot.org cras at dovecot.org
Thu Oct 27 16:40:43 EEST 2005


Update of /var/lib/cvs/dovecot/src/lib
In directory talvi:/tmp/cvs-serv16610

Modified Files:
	network.c 
Log Message:
Use read() instead of recv() in net_receive(), so it works even with
non-sockets. We weren't using any recv()'s flags anyway, so it shouldn't
matter.



Index: network.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib/network.c,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -d -r1.34 -r1.35
--- network.c	25 Sep 2005 11:12:24 -0000	1.34
+++ network.c	27 Oct 2005 13:40:40 -0000	1.35
@@ -379,7 +379,7 @@
 	i_assert(buf != NULL);
 	i_assert(len <= SSIZE_T_MAX);
 
-	ret = recv(fd, buf, len, 0);
+	ret = read(fd, buf, len);
 	if (ret == 0) {
 		/* disconnected */
 		errno = 0;



More information about the dovecot-cvs mailing list