diff options
author | Volker Lendecke <vl@samba.org> | 2009-02-07 11:28:38 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-02-07 19:25:34 +0100 |
commit | 2fd79e15f76d396674bcb8a1d1c17fa30da15110 (patch) | |
tree | 8c2f0c40cc244c89e7f914649453f71fc7b189cf /source3/smbd | |
parent | 4e79ca61611cf17c522827b36e6113001de36c54 (diff) | |
download | samba-2fd79e15f76d396674bcb8a1d1c17fa30da15110.tar.gz samba-2fd79e15f76d396674bcb8a1d1c17fa30da15110.tar.bz2 samba-2fd79e15f76d396674bcb8a1d1c17fa30da15110.zip |
Close samr_handle if open_domain failed
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/lanman.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |