[dovecot-cvs] dovecot/src/login-common login-proxy.c,1.7,1.8
cras at dovecot.org
cras at dovecot.org
Mon Feb 20 19:17:17 EET 2006
Update of /var/lib/cvs/dovecot/src/login-common
In directory talvi:/tmp/cvs-serv19102/login-common
Modified Files:
login-proxy.c
Log Message:
and fix for last cleanup..
Index: login-proxy.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/login-common/login-proxy.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- login-proxy.c 20 Feb 2006 17:14:42 -0000 1.7
+++ login-proxy.c 20 Feb 2006 17:17:15 -0000 1.8
@@ -43,7 +43,7 @@
}
ret = net_receive(proxy->server_fd, buf, sizeof(buf));
- if (ret > 0 || o_stream_send(proxy->client_output, buf, ret) != ret)
+ if (ret < 0 || o_stream_send(proxy->client_output, buf, ret) != ret)
login_proxy_free(proxy);
}
@@ -62,7 +62,7 @@
}
ret = net_receive(proxy->client_fd, buf, sizeof(buf));
- if (ret > 0 || o_stream_send(proxy->server_output, buf, ret) != ret)
+ if (ret < 0 || o_stream_send(proxy->server_output, buf, ret) != ret)
login_proxy_free(proxy);
}
More information about the dovecot-cvs
mailing list