1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-09 08:58:35 +03:00

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)
This commit is contained in:
Stefan Metzmacher 2013-02-27 09:29:47 +01:00
parent 257644f688
commit e4c48c9da1

View 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);