From b958e82d0b67654a76fc95edde646c6ea8f99ae1 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 11 Aug 2023 10:47:28 -0700 Subject: [PATCH] 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 Signed-off-by: Jeremy Allison Reviewed-by: Volker Lendecke (cherry picked from commit 5bc50d2ea4444244721e72b4264311c7005d2f3c) --- source3/smbd/smb1_sesssetup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/smbd/smb1_sesssetup.c b/source3/smbd/smb1_sesssetup.c index 785c9d5da13..29302f9c56b 100644 --- a/source3/smbd/smb1_sesssetup.c +++ b/source3/smbd/smb1_sesssetup.c @@ -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; -- 2.47.2