]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:nmbd: fix talloc_zero_array() check in nmbd_packets.c
authorStefan Metzmacher <metze@samba.org>
Wed, 27 Feb 2013 08:29:47 +0000 (09:29 +0100)
committerKarolin Seeger <kseeger@samba.org>
Thu, 20 Oct 2016 08:43:27 +0000 (10:43 +0200)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Fri Sep 23 18:08:21 CEST 2016 on sn-devel-144

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12283

(cherry picked from commit 4470f01605a2f09b054550ee5a8f8d3b4ebc2098)

source3/nmbd/nmbd_packets.c

index 9f5cc18039deffef07be794bf1194d0fa9e49030..65c8a73753e660fef44e5127d2a04754ff303f9f 100644 (file)
@@ -1724,7 +1724,7 @@ static bool create_listen_pollfds(struct pollfd **pfds,
        }
 
        attrs = talloc_array(NULL, struct socket_attributes, count);
-       if (fds == NULL) {
+       if (attrs == NULL) {
                DEBUG(1, ("create_listen_pollfds: malloc fail for attrs. "
                          "size %d\n", count));
                TALLOC_FREE(fds);