1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

Fix Coverity bug #902, uninitialized variable.

Jeremy.
This commit is contained in:
Jeremy Allison 2009-04-23 02:02:28 -07:00
parent 951de68721
commit 6610327770
2 changed files with 4 additions and 2 deletions

View File

@ -1936,7 +1936,9 @@ bool send_mailslot(bool unique, const char *mailslot,char *buf, size_t len,
DEBUG(0, ("send_mailslot: Cannot write beyond end of packet\n"));
return False;
} else {
memcpy(p2,buf,len);
if (len) {
memcpy(p2,buf,len);
}
p2 += len;
}

View File

@ -267,7 +267,7 @@ static void nmbd_proxy_logon_done(struct tevent_req *subreq)
tevent_req_callback_data(subreq,
struct nmbd_proxy_logon_state);
NTSTATUS status;
DATA_BLOB response;
DATA_BLOB response = data_blob_null;
status = cldap_netlogon_recv(subreq, NULL, state, &state->io);
if (!NT_STATUS_IS_OK(status)) {