mirror of
https://github.com/samba-team/samba.git
synced 2025-10-16 11:33:16 +03:00
s3-rpc_server: Don't segfault if there are not handles to free.
This commit is contained in:
@@ -307,6 +307,10 @@ bool close_policy_hnd(struct pipes_struct *p, struct policy_handle *hnd)
|
||||
|
||||
void close_policy_by_pipe(struct pipes_struct *p)
|
||||
{
|
||||
if (p->pipe_handles == NULL) {
|
||||
return;
|
||||
}
|
||||
|
||||
p->pipe_handles->pipe_ref_count--;
|
||||
|
||||
if (p->pipe_handles->pipe_ref_count == 0) {
|
||||
|
Reference in New Issue
Block a user