mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +03:00
messaging: fix a valgrind warning on 64bit hosts zero out padding
metze (This used to be commit f555b8e4c35f69fdc1fb34427d882580eecad284)
This commit is contained in:
parent
d7299d82c3
commit
caea750810
@ -462,6 +462,8 @@ NTSTATUS messaging_send(struct messaging_context *msg, struct server_id server,
|
||||
rec->retries = 0;
|
||||
rec->msg = msg;
|
||||
rec->header = (struct messaging_header *)rec->packet.data;
|
||||
/* zero padding */
|
||||
ZERO_STRUCTP(rec->header);
|
||||
rec->header->version = MESSAGING_VERSION;
|
||||
rec->header->msg_type = msg_type;
|
||||
rec->header->from = msg->server_id;
|
||||
|
Loading…
x
Reference in New Issue
Block a user