1
0
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:
Andreas Schneider 2011-05-25 17:26:28 +02:00
parent 438b24a77f
commit e744222e41

View File

@ -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) {