From: Volker Lendecke Date: Wed, 31 Jul 2019 09:40:20 +0000 (+0200) Subject: winbind: Fix the clang build X-Git-Tag: tdb-1.4.2~310 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a8e034794beaed00205ba198cbb77c5705767eb1;p=thirdparty%2Fsamba.git winbind: Fix the clang build clang complains that lm_resp and nt_resp is used uninitialized. This is true for the "goto done;" in line 2644. This directly calls log_authentication without having initialized those two blobs. Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/winbindd/winbindd_pam.c b/source3/winbindd/winbindd_pam.c index eaf16d0dced..9b220c46c70 100644 --- a/source3/winbindd/winbindd_pam.c +++ b/source3/winbindd/winbindd_pam.c @@ -2611,7 +2611,7 @@ enum winbindd_result winbindd_dual_pam_auth_crap(struct winbindd_domain *domain, uint32_t flags = 0; uint16_t validation_level; union netr_Validation *validation = NULL; - DATA_BLOB lm_resp, nt_resp; + DATA_BLOB lm_resp = { 0 }, nt_resp = { 0 }; const struct timeval start_time = timeval_current(); const struct tsocket_address *remote = NULL; const struct tsocket_address *local = NULL;