git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e9f03c
)
s3-samr: in _samr_QueryUserInfo() make sure to not return any info in error case.
author
Günther Deschner
<gd@samba.org>
Fri, 15 May 2009 12:34:50 +0000
(14:34 +0200)
committer
Günther Deschner
<gd@samba.org>
Fri, 15 May 2009 13:37:50 +0000
(15:37 +0200)
Guenther
source3/rpc_server/srv_samr_nt.c
patch
|
blob
|
history
diff --git
a/source3/rpc_server/srv_samr_nt.c
b/source3/rpc_server/srv_samr_nt.c
index 64ea1cdf3c676695268cf72729eac3bbe680d78a..52864fcaa092ce5f1bd8d9bfd1ef9a0360846705 100644
(file)
--- 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;