1
0
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:
Stefan Metzmacher 2008-03-15 12:21:06 +01:00
parent d7299d82c3
commit caea750810

View File

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