summaryrefslogtreecommitdiff
path: root/source4/lib/socket
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-10-27 21:29:55 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:04:51 -0500
commit93c32f81e2613c111d69ae6bcc37eb9e58788e28 (patch)
treed4c30f4c920d537eb53d7d91ecbcc6e2580024b7 /source4/lib/socket
parent971754c0ed8613b1897041bc5e5b67d1e3b68abe (diff)
downloadsamba-93c32f81e2613c111d69ae6bcc37eb9e58788e28.tar.gz
samba-93c32f81e2613c111d69ae6bcc37eb9e58788e28.tar.bz2
samba-93c32f81e2613c111d69ae6bcc37eb9e58788e28.zip
r3300: initialise *sendlen on failure, to allow for callers to check only for
NT_STATUS_IS_ERR() (This used to be commit 80a109de8458420ac0b40c563f4b3bc51424d759)
Diffstat (limited to 'source4/lib/socket')
-rw-r--r--source4/lib/socket/socket_ipv4.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/lib/socket/socket_ipv4.c b/source4/lib/socket/socket_ipv4.c
index 3fda0fe9fb..f280f804ef 100644
--- a/source4/lib/socket/socket_ipv4.c
+++ b/source4/lib/socket/socket_ipv4.c
@@ -228,6 +228,8 @@ static NTSTATUS ipv4_tcp_send(struct socket_context *sock, TALLOC_CTX *mem_ctx,
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);