s3-winbind: Make sure we crash if domain is really not found.
authorAndreas Schneider <asn@samba.org>
Tue, 29 Jun 2010 08:34:17 +0000 (10:34 +0200)
committerAndreas Schneider <asn@samba.org>
Tue, 29 Jun 2010 09:12:12 +0000 (11:12 +0200)
Found by clang-analyzer.

nsswitch/pam_winbind.c

index f13e365b87cab40d908fbc2694f8af1446c42ed1..b2d74dec4b18bae363b31a9ac0b4a3c9548a9b66 100644 (file)
@@ -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;