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:
committed by
Gerald (Jerry) Carter
parent
971754c0ed
commit
93c32f81e2
@@ -228,6 +228,8 @@ static NTSTATUS ipv4_tcp_send(struct socket_context *sock, TALLOC_CTX *mem_ctx,
|
|||||||
ssize_t len;
|
ssize_t len;
|
||||||
int flgs = 0;
|
int flgs = 0;
|
||||||
|
|
||||||
|
*sendlen = 0;
|
||||||
|
|
||||||
len = send(sock->fd, blob->data, blob->length, flgs);
|
len = send(sock->fd, blob->data, blob->length, flgs);
|
||||||
if (len == -1) {
|
if (len == -1) {
|
||||||
return map_nt_error_from_unix(errno);
|
return map_nt_error_from_unix(errno);
|
||||||
|
|||||||
Reference in New Issue
Block a user