From caea7508102c2ebbe03e9de5d761ac96490c9a06 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sat, 15 Mar 2008 12:21:06 +0100 Subject: messaging: fix a valgrind warning on 64bit hosts zero out padding metze (This used to be commit f555b8e4c35f69fdc1fb34427d882580eecad284) --- source4/lib/messaging/messaging.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source4/lib') 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; -- cgit