s3: smbd: Uncorrupt the pointer we were using to prove a crash.
commitb958e82d0b67654a76fc95edde646c6ea8f99ae1
authorJeremy Allison <jra@samba.org>
Fri, 11 Aug 2023 17:47:28 +0000 (11 10:47 -0700)
committerJule Anger <janger@samba.org>
Wed, 16 Aug 2023 08:47:14 +0000 (16 08:47 +0000)
tree8705ce3f572e82bf69ab6f6ec2d3c72784a59bcf
parent3a123fbbe86dbc8dba8612095554bff8309ab381
s3: smbd: Uncorrupt the pointer we were using to prove a crash.

Rather than restore to uninitialized, set to NULL as per
modern coding practices.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15420
Reviewed-by: Volker Lendecke <vl@samba.org>
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
(cherry picked from commit 5bc50d2ea4444244721e72b4264311c7005d2f3c)
source3/smbd/smb1_sesssetup.c