s3: smbd: In create_conn_struct_cwd(), don't TALLOC_FREE() an unallocated pointer...
authorJeremy Allison <jra@samba.org>
Tue, 24 Aug 2021 00:42:40 +0000 (17:42 -0700)
committerJule Anger <janger@samba.org>
Mon, 6 Sep 2021 19:17:11 +0000 (19:17 +0000)
commit57b266e23c459c8d0675ec17c8a5275f9c797781
tree1b3f1e5ad65bd6e6b3e4000220abaead3559a3c7
parent2ed234deee381cd15d7b7867136c5bbd78f5448c
s3: smbd: In create_conn_struct_cwd(), don't TALLOC_FREE() an unallocated pointer on error.

Just return the status - if create_conn_struct_as_root() fails
the connection struct never gets returned.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14809

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Wed Aug 25 17:09:23 UTC 2021 on sn-devel-184

(cherry picked from commit 857045f3a236dea125200dd09279d677e513682b)
source3/smbd/msdfs.c