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>
*/
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");
}
}