1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-22 02:50:28 +03:00

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)
This commit is contained in:
Jeremy Allison 2023-08-11 10:47:28 -07:00 committed by Jule Anger
parent 3a123fbbe8
commit b958e82d0b

View File

@ -581,7 +581,7 @@ void reply_sesssetup_and_X(struct smb_request *req)
struct reply_sesssetup_and_X_state *state = NULL;
uint64_t sess_vuid;
uint16_t smb_bufsize;
char *tmp = (char *)0xDEADBEEF;
char *tmp = NULL;
fstring sub_user; /* Sanitised username for substitution */
const char *native_os;
const char *native_lanman;