From: Jeremy Allison Date: Fri, 11 Aug 2023 17:47:28 +0000 (-0700) Subject: s3: smbd: Uncorrupt the pointer we were using to prove a crash. X-Git-Tag: samba-4.17.11~44 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b958e82d0b67654a76fc95edde646c6ea8f99ae1;p=thirdparty%2Fsamba.git 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) --- 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;