Fix gcc11 compiler issue "-Werror=maybe-uninitialized"
[samba.git] / libcli / auth / smbencrypt.c
index 337e89ef559c6e6076d617cec44f2316cd2e12d4..468374699f7c02c1b29b7714fbf3906e384d42a8 100644 (file)
@@ -1041,7 +1041,7 @@ WERROR decode_wkssvc_join_password_buffer(TALLOC_CTX *mem_ctx,
                                          DATA_BLOB *session_key,
                                          char **pwd)
 {
-       uint8_t _confounder[8];
+       uint8_t _confounder[8] = { 0 };
        DATA_BLOB confounder = data_blob_const(_confounder, 8);
        uint8_t pwbuf[516] = {0};
        DATA_BLOB decrypt_pwbuf = data_blob_const(pwbuf, 516);