diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/rpc_server/srv_samr_nt.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_samr_nt.c b/source3/rpc_server/srv_samr_nt.c index 64ea1cdf3c..52864fcaa0 100644 --- a/source3/rpc_server/srv_samr_nt.c +++ b/source3/rpc_server/srv_samr_nt.c @@ -3024,10 +3024,15 @@ NTSTATUS _samr_QueryUserInfo(pipes_struct *p, break; } - TALLOC_FREE(pwd); + if (!NT_STATUS_IS_OK(status)) { + goto done; + } *r->out.info = user_info; + done: + TALLOC_FREE(pwd); + DEBUG(5,("_samr_QueryUserInfo: %d\n", __LINE__)); return status; |