mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
Close samr_handle if open_domain failed
This commit is contained in:
parent
4e79ca6161
commit
2fd79e15f7
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user