summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-03-15 12:21:06 +0100
committerStefan Metzmacher <metze@samba.org>2008-03-15 12:21:06 +0100
commitcaea7508102c2ebbe03e9de5d761ac96490c9a06 (patch)
treebf62100682fe35b31c60dbc794103ef86b3b4717
parentd7299d82c31f08750d5d378b0e1f0226dbff5d05 (diff)
downloadsamba-caea7508102c2ebbe03e9de5d761ac96490c9a06.tar.gz
samba-caea7508102c2ebbe03e9de5d761ac96490c9a06.tar.bz2
samba-caea7508102c2ebbe03e9de5d761ac96490c9a06.zip
messaging: fix a valgrind warning on 64bit hosts zero out padding
metze (This used to be commit f555b8e4c35f69fdc1fb34427d882580eecad284)
-rw-r--r--source4/lib/messaging/messaging.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/lib/messaging/messaging.c b/source4/lib/messaging/messaging.c
index 6a879ab962..29d6e00247 100644
--- a/source4/lib/messaging/messaging.c
+++ b/source4/lib/messaging/messaging.c
@@ -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;