summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2007-07-16 07:46:29 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:28:38 -0500
commitffd2b4e4cdb54948f1fd53a2479d09c66728dc41 (patch)
treea7ce8969d5b81497b17e36779cc2415f4e3a7cc6
parent7ba884db5dc5560b8b1fb7638269168b318c9d6a (diff)
downloadsamba-ffd2b4e4cdb54948f1fd53a2479d09c66728dc41.tar.gz
samba-ffd2b4e4cdb54948f1fd53a2479d09c66728dc41.tar.bz2
samba-ffd2b4e4cdb54948f1fd53a2479d09c66728dc41.zip
r23884: Fix Coverity ID 379
(This used to be commit 86476efc7a6adfe70c0437c2ff1bbd4b2b4ade5e)
-rw-r--r--source3/nsswitch/winbindd_user.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/nsswitch/winbindd_user.c b/source3/nsswitch/winbindd_user.c
index 198c54c039..fac2832f56 100644
--- a/source3/nsswitch/winbindd_user.c
+++ b/source3/nsswitch/winbindd_user.c
@@ -245,6 +245,12 @@ static void getpwsid_queryuser_recv(void *private_data, BOOL success,
struct winbindd_domain *domain = NULL;
domain = find_lookup_domain_from_sid(&s->user_sid);
+ if (domain == NULL) {
+ DEBUG(5, ("find_lookup_domain_from_sid(%s) failed\n",
+ sid_string_static(&s->user_sid)));
+ request_error(s->state);
+ return;
+ }
winbindd_lookup_name_by_sid(s->state->mem_ctx, domain,
&s->user_sid, &domain_name,
&user_name, &type );