From 2fd79e15f76d396674bcb8a1d1c17fa30da15110 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 7 Feb 2009 11:28:38 +0100 Subject: Close samr_handle if open_domain failed --- source3/smbd/lanman.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source3') diff --git a/source3/smbd/lanman.c b/source3/smbd/lanman.c index 4807e62436..4758e57e21 100644 --- a/source3/smbd/lanman.c +++ b/source3/smbd/lanman.c @@ -2353,6 +2353,7 @@ static bool api_RNetUserEnum(connection_struct *conn, uint16 vuid, if (!NT_STATUS_IS_OK(status)) { DEBUG(0, ("api_RNetUserEnum: samr_OpenDomain failed: %s\n", nt_errstr(status))); + rpccli_samr_Close(samr_pipe, talloc_tos(), &samr_handle); return false; } -- cgit