From: Stefan Metzmacher Date: Wed, 27 Feb 2013 08:29:47 +0000 (+0100) Subject: s3:nmbd: fix talloc_zero_array() check in nmbd_packets.c X-Git-Tag: samba-4.3.12~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de63f7dc012336364dee930541e1008324863892;p=thirdparty%2Fsamba.git s3:nmbd: fix talloc_zero_array() check in nmbd_packets.c Signed-off-by: Stefan Metzmacher Reviewed-by: Volker Lendecke Autobuild-User(master): Volker Lendecke 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) --- diff --git a/source3/nmbd/nmbd_packets.c b/source3/nmbd/nmbd_packets.c index 9f5cc18039d..65c8a73753e 100644 --- a/source3/nmbd/nmbd_packets.c +++ b/source3/nmbd/nmbd_packets.c @@ -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);