s3:messaging: fix uninitialized data introduced by padding
authorMichael Adam <obnox@samba.org>
Mon, 29 Sep 2014 09:01:11 +0000 (11:01 +0200)
committerMichael Adam <obnox@samba.org>
Tue, 30 Sep 2014 14:36:09 +0000 (16:36 +0200)
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source3/lib/messages.c

index 84147de0f6e6fa70545837faa1a84f8241d8a62e..573116f89255cac72e09274313763ab71ce89387 100644 (file)
@@ -515,6 +515,7 @@ NTSTATUS messaging_send_iov(struct messaging_context *msg_ctx,
                return NT_STATUS_OK;
        }
 
+       ZERO_STRUCT(hdr);
        hdr = (struct messaging_hdr) {
                .msg_type = msg_type,
                .dst = server,