diff options
author | Stefan Metzmacher <metze@samba.org> | 2013-02-27 09:29:47 +0100 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2016-10-20 10:43:27 +0200 |
commit | de63f7dc012336364dee930541e1008324863892 (patch) | |
tree | c0141a18db4fb849846c06ea18d4086c22ca98f5 | |
parent | 2014c088d32daf5efe93fd9843c7a395907b4499 (diff) | |
download | samba-de63f7dc012336364dee930541e1008324863892.tar.gz |
s3:nmbd: fix talloc_zero_array() check in nmbd_packets.c
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)
-rw-r--r-- | source3/nmbd/nmbd_packets.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |