1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-13 08:23:49 +03:00

r3300: initialise *sendlen on failure, to allow for callers to check only for

NT_STATUS_IS_ERR()
This commit is contained in:
Andrew Tridgell
2004-10-27 21:29:55 +00:00
committed by Gerald (Jerry) Carter
parent afed78f359
commit 80a109de84

View File

@@ -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);