Skip to content

Commit

Permalink
s3:nmbd: fix talloc_zero_array() check in nmbd_packets.c
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Metzmacher <[email protected]>
Reviewed-by: Volker Lendecke <[email protected]>

Autobuild-User(master): Volker Lendecke <[email protected]>
Autobuild-Date(master): Fri Sep 23 18:08:21 CEST 2016 on sn-devel-144
  • Loading branch information
metze-samba authored and vlendec committed Sep 23, 2016
1 parent 60e4bd3 commit 4470f01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source3/nmbd/nmbd_packets.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4470f01

Please sign in to comment.