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)
committerRalph Boehme <slow@samba.org>
Wed, 25 Aug 2021 17:09:23 +0000 (17:09 +0000)
commit857045f3a236dea125200dd09279d677e513682b
tree3e82a6f6efabb247d662b265486c924730a134b8
parentb4d8c62c4e8191e05fd03dd096a0bc989e224ed3
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
source3/smbd/msdfs.c