1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-21 20:23:50 +03:00

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

NT_STATUS_IS_ERR()
(This used to be commit 80a109de84)
This commit is contained in:
Andrew Tridgell
2004-10-27 21:29:55 +00:00
committed by Gerald (Jerry) Carter
parent 971754c0ed
commit 93c32f81e2

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