From: Volker Lendecke Date: Sat, 7 Feb 2009 10:28:38 +0000 (+0100) Subject: Close samr_handle if open_domain failed X-Git-Tag: samba-4.0.0alpha7~416^2~60 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2fd79e15f76d396674bcb8a1d1c17fa30da15110;p=thirdparty%2Fsamba.git Close samr_handle if open_domain failed --- diff --git a/source3/smbd/lanman.c b/source3/smbd/lanman.c index 4807e624362..4758e57e21f 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; }