]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
winbind: Fix CID 1427626 Uninitialized scalar variable
authorVolker Lendecke <vl@samba.org>
Wed, 17 Jan 2018 13:45:49 +0000 (14:45 +0100)
committerRalph Boehme <slow@samba.org>
Wed, 17 Jan 2018 22:58:34 +0000 (23:58 +0100)
Likely a false positive, but Coverity can't follow all the paths leading
to line 1598.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Wed Jan 17 23:58:34 CET 2018 on sn-devel-144

source3/winbindd/winbindd_pam.c

index 6e34b5a777d30fbb6427e849abb7340a5d4a8bd9..97425e859f349884b1a8bd1d77bdb1261546da46 100644 (file)
@@ -1428,7 +1428,7 @@ static NTSTATUS winbind_samlogon_retry_loop(struct winbindd_domain *domain,
        int netr_attempts = 0;
        bool retry = false;
        NTSTATUS result;
-       uint16_t validation_level;
+       uint16_t validation_level = UINT16_MAX;
        union netr_Validation *validation = NULL;
 
        do {