diff options
-rw-r--r-- | source3/smbd/smb2_sesssetup.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/smbd/smb2_sesssetup.c b/source3/smbd/smb2_sesssetup.c index 61b5519d97..2599d2a63d 100644 --- a/source3/smbd/smb2_sesssetup.c +++ b/source3/smbd/smb2_sesssetup.c @@ -446,6 +446,12 @@ struct smbd_smb2_session_setup_state { static int pp_self_ref_destructor(struct smbd_smb2_session_setup_state **pp_state) { (*pp_state)->session = NULL; + /* + * To make things clearer, ensure the pp_self_ref + * pointer is nulled out. We're never going to + * access this again. + */ + (*pp_state)->pp_self_ref = NULL; return 0; } |