summaryrefslogtreecommitdiff
path: root/source4/libnet/userinfo.c
diff options
context:
space:
mode:
authorRafal Szczesniak <mimir@samba.org>2006-09-19 00:25:55 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:19:00 -0500
commit1ba24e868072e45e435c246b7b0c8782f5da9386 (patch)
tree9df2f80c006295c90068822e354d50375c7a98d2 /source4/libnet/userinfo.c
parente0da0acac00a4eebdea4ba7e56c45a9e877eb3a5 (diff)
downloadsamba-1ba24e868072e45e435c246b7b0c8782f5da9386.tar.gz
samba-1ba24e868072e45e435c246b7b0c8782f5da9386.tar.bz2
samba-1ba24e868072e45e435c246b7b0c8782f5da9386.zip
r18657: handle the case where rpc call went fine, but the result
not necessariy did. rafal (This used to be commit 69c379cc636d2ccd454ea21c7ccebf27dd84e40d)
Diffstat (limited to 'source4/libnet/userinfo.c')
-rw-r--r--source4/libnet/userinfo.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/libnet/userinfo.c b/source4/libnet/userinfo.c
index 9f1b97b670..cf00ae16ba 100644
--- a/source4/libnet/userinfo.c
+++ b/source4/libnet/userinfo.c
@@ -62,6 +62,9 @@ static NTSTATUS userinfo_lookup(struct composite_context *c,
/* receive samr_Lookup reply */
c->status = dcerpc_ndr_request_recv(s->req);
NT_STATUS_NOT_OK_RETURN(c->status);
+
+ /* there could be a problem with name resolving itself */
+ NT_STATUS_NOT_OK_RETURN(s->lookup.out.result);
/* have we actually got name resolved
- we're looking for only one at the moment */