mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
s3:rpc_server: Check pointer before dereference
The debug message dereference the pointer, but as close_policy_by_pipe is called from pipes_struct destructor it may be not initialized yet if an error occur in the initialization code. Signed-off-by: Samuel Cabrero <scabrero@suse.de> Reviewed-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
parent
0c04daf523
commit
4d42b7cde2
@ -413,9 +413,11 @@ void close_policy_by_pipe(struct pipes_struct *p)
|
||||
*/
|
||||
TALLOC_FREE(p->pipe_handles);
|
||||
|
||||
DEBUG(10,("Deleted handle list for RPC connection %s\n",
|
||||
ndr_interface_name(&p->contexts->syntax.uuid,
|
||||
p->contexts->syntax.if_version)));
|
||||
DBG_DEBUG("Deleted handle list for RPC connection %s\n",
|
||||
p->contexts ?
|
||||
ndr_interface_name(&p->contexts->syntax.uuid,
|
||||
p->contexts->syntax.if_version) :
|
||||
"Unknown");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user