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

Make metze happy and the code clearer :-).

Ensure we know after the destructor fires we're never going to
look at this again.

Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed Sep 12 03:00:21 CEST 2012 on sn-devel-104
This commit is contained in:
Jeremy Allison
2012-09-11 16:16:37 -07:00
parent 4e595f4bf0
commit bd2f1604d7

View File

@ -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;
}