diff options
author | Günther Deschner <gd@samba.org> | 2009-05-15 14:34:50 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-05-15 15:37:50 +0200 |
commit | 59192bf03f3781fe6a21be66a7374ea72cac71f4 (patch) | |
tree | 3482103cd0f9460777f6ce476873ee61954ae1f2 /source3 | |
parent | 0e9f03c72715d18c78befea6333666803b240025 (diff) | |
download | samba-59192bf03f3781fe6a21be66a7374ea72cac71f4.tar.gz samba-59192bf03f3781fe6a21be66a7374ea72cac71f4.tar.bz2 samba-59192bf03f3781fe6a21be66a7374ea72cac71f4.zip |
s3-samr: in _samr_QueryUserInfo() make sure to not return any info in error case.
Guenther
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; |