summaryrefslogtreecommitdiffstats
path: root/source/lib/socket/socket_ipv4.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-10-27 21:29:55 +0000
committerAndrew Tridgell <tridge@samba.org>2004-10-27 21:29:55 +0000
commit6109d139976fa69d1151efd0b4bd4658ea0998ab (patch)
tree06acc484724f74cebd50fbb2ffded42b564bb2b2 /source/lib/socket/socket_ipv4.c
parent7f846a728de077a2f12ef2b31f55c12aa4943880 (diff)
downloadsamba-6109d139976fa69d1151efd0b4bd4658ea0998ab.tar.gz
samba-6109d139976fa69d1151efd0b4bd4658ea0998ab.tar.xz
samba-6109d139976fa69d1151efd0b4bd4658ea0998ab.zip
r3300: initialise *sendlen on failure, to allow for callers to check only for
NT_STATUS_IS_ERR()
Diffstat (limited to 'source/lib/socket/socket_ipv4.c')
-rw-r--r--source/lib/socket/socket_ipv4.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/lib/socket/socket_ipv4.c b/source/lib/socket/socket_ipv4.c
index 3fda0fe9fbe..f280f804ef8 100644
--- a/source/lib/socket/socket_ipv4.c
+++ b/source/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);