summaryrefslogtreecommitdiff
path: root/nsswitch
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2010-06-29 10:34:17 +0200
committerAndreas Schneider <asn@samba.org>2010-06-29 11:12:12 +0200
commitf324036e76abb0b572fb65c4c403e7ede259682a (patch)
treef93016c4839a1aeeb0e2991f0daf740c601e8a2c /nsswitch
parenteb7bf9d7309914fb2207f822e8017e1c1001de46 (diff)
downloadsamba-f324036e76abb0b572fb65c4c403e7ede259682a.tar.gz
samba-f324036e76abb0b572fb65c4c403e7ede259682a.tar.bz2
samba-f324036e76abb0b572fb65c4c403e7ede259682a.zip
s3-winbind: Make sure we crash if domain is really not found.
Found by clang-analyzer.
Diffstat (limited to 'nsswitch')
-rw-r--r--nsswitch/pam_winbind.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nsswitch/pam_winbind.c b/nsswitch/pam_winbind.c
index f13e365b87..b2d74dec4b 100644
--- a/nsswitch/pam_winbind.c
+++ b/nsswitch/pam_winbind.c
@@ -2422,7 +2422,7 @@ static char* winbind_upn_to_username(struct pwb_context *ctx,
wbcErr wbc_status = WBC_ERR_UNKNOWN_FAILURE;
struct wbcDomainSid sid;
enum wbcSidType type;
- char *domain;
+ char *domain = NULL;
char *name;
char *p;