summaryrefslogtreecommitdiff
path: root/source3/winbindd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2019-07-31 11:40:20 +0200
committerJeremy Allison <jra@samba.org>2019-08-06 21:49:28 +0000
commita8e034794beaed00205ba198cbb77c5705767eb1 (patch)
tree3e6ce98fb5610eacff042fda3768660f95b3db7b /source3/winbindd
parentd103af280afd29d633b1958620e7b3beddfd6087 (diff)
downloadsamba-a8e034794beaed00205ba198cbb77c5705767eb1.tar.gz
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 <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/winbindd')
-rw-r--r--source3/winbindd/winbindd_pam.c2
1 files changed, 1 insertions, 1 deletions
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;