]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib: Fix bug 12291
authorJeremy Allison <jra@samba.org>
Fri, 21 Oct 2016 21:38:49 +0000 (14:38 -0700)
committerStefan Metzmacher <metze@samba.org>
Mon, 24 Oct 2016 12:24:42 +0000 (14:24 +0200)
Bug: https://bugzilla.samba.org/show_bug.cgi?id=12291

Back-ported from f92590d10aaf9a289b5f6aac8ffc79129b83a517 in master.

Signed-off-by: Jeremy Allison <jra@samba.org>
Autobuild-User(v4-4-test): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(v4-4-test): Mon Oct 24 14:24:42 CEST 2016 on sn-devel-144

source3/lib/msghdr.c

index 6917069d925813bd344cee33019c157c1a9fb109..ec07f8b813397b15f229be04d13e8f71e0f9070c 100644 (file)
@@ -205,7 +205,7 @@ ssize_t msghdr_copy(struct msghdr_buf *msg, size_t msgsize,
                msgsize - offsetof(struct msghdr_buf, buf) : 0;
 
        if (msg != NULL) {
-               msg->msg = (struct msghdr) {};
+               msg->msg = (struct msghdr) { 0 };
 
                fd_len = msghdr_prep_fds(&msg->msg, msg->buf, bufsize,
                                         fds, num_fds);