]> git.ipfire.org Git - thirdparty/samba.git/commit
smbd/notify: Handle allocation failure
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Mon, 13 Feb 2023 01:58:52 +0000 (14:58 +1300)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 12 Apr 2023 13:52:31 +0000 (13:52 +0000)
commit78ca3e16da77ba13ef5fc0ae303bb4a371ebcf8d
treeaca06268f1c082206c1ed6688d6cbeaffdcfc6de
parenta1e64e57378b90e8fdc5fbd4ea0d090af5ee0405
smbd/notify: Handle allocation failure

If a talloc function returns NULL, indicating failure, the failure could
be masked by the next talloc call allocating on the NULL context.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/smbd/notify.c