summaryrefslogtreecommitdiff
path: root/source4/libnet/userinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/libnet/userinfo.c')
-rw-r--r--source4/libnet/userinfo.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/libnet/userinfo.c b/source4/libnet/userinfo.c
index cf00ae16ba..57a30e59dc 100644
--- a/source4/libnet/userinfo.c
+++ b/source4/libnet/userinfo.c
@@ -104,7 +104,7 @@ static NTSTATUS userinfo_openuser(struct composite_context *c,
/* receive samr_OpenUser reply */
c->status = dcerpc_ndr_request_recv(s->req);
NT_STATUS_NOT_OK_RETURN(c->status);
-
+
/* prepare parameters for QueryUserInfo call */
s->queryuserinfo.in.user_handle = &s->user_handle;
s->queryuserinfo.in.level = s->level;
@@ -134,6 +134,9 @@ static NTSTATUS userinfo_getuser(struct composite_context *c,
c->status = dcerpc_ndr_request_recv(s->req);
NT_STATUS_NOT_OK_RETURN(c->status);
+ /* check if queryuser itself went ok */
+ NT_STATUS_NOT_OK_RETURN(s->queryuserinfo.out.result);
+
s->info = talloc_steal(s, s->queryuserinfo.out.info);
/* prepare arguments for Close call */