mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
s3-rpc_server: Don't segfault if there are not handles to free.
This commit is contained in:
parent
438b24a77f
commit
e744222e41
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user