diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-10-27 21:29:55 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2004-10-27 21:29:55 +0000 |
commit | 6109d139976fa69d1151efd0b4bd4658ea0998ab (patch) | |
tree | 06acc484724f74cebd50fbb2ffded42b564bb2b2 /source/lib/socket/socket_ipv4.c | |
parent | 7f846a728de077a2f12ef2b31f55c12aa4943880 (diff) | |
download | samba-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.c | 2 |
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); |