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:
committed by
Gerald (Jerry) Carter
parent
afed78f359
commit
80a109de84
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user