svn commit: samba r3300 - in branches/SAMBA_4_0/source/lib/socket: .
tridge at samba.org
tridge at samba.org
Wed Oct 27 21:29:55 GMT 2004
Author: tridge
Date: 2004-10-27 21:29:55 +0000 (Wed, 27 Oct 2004)
New Revision: 3300
WebSVN: http://websvn.samba.org/websvn/changeset.php?rep=samba&path=/branches/SAMBA_4_0/source/lib/socket&rev=3300&nolog=1
Log:
initialise *sendlen on failure, to allow for callers to check only for
NT_STATUS_IS_ERR()
Modified:
branches/SAMBA_4_0/source/lib/socket/socket_ipv4.c
Changeset:
Modified: branches/SAMBA_4_0/source/lib/socket/socket_ipv4.c
===================================================================
--- branches/SAMBA_4_0/source/lib/socket/socket_ipv4.c 2004-10-27 19:48:26 UTC (rev 3299)
+++ branches/SAMBA_4_0/source/lib/socket/socket_ipv4.c 2004-10-27 21:29:55 UTC (rev 3300)
@@ -228,6 +228,8 @@
ssize_t len;
int flgs = 0;
+ *sendlen = 0;
+
len = send(sock->fd, blob->data, blob->length, flgs);
if (len == -1) {
return map_nt_error_from_unix(errno);
More information about the samba-cvs
mailing list