]> git.ipfire.org Git - thirdparty/samba.git/commit
auth:gensec: Fully initialize struct spnego_data
authorAndreas Schneider <asn@samba.org>
Tue, 16 Jul 2024 15:01:22 +0000 (17:01 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 18 Jul 2024 12:47:30 +0000 (12:47 +0000)
commit8d637d667d0bbc642f2b4220cf78c2b69025ecdb
tree7ea66dc315878c8c0fc9ee7aba39548f8e7095d8
parentd64242f676dbeda52696e9138c01b6768b5a4eca
auth:gensec: Fully initialize struct spnego_data

"Error: UNINIT (CWE-457):
samba-4.20.0rc2/auth/gensec/spnego.c:1129: var_decl: Declaring variable ""spnego_out"" without initializer.
samba-4.20.0rc2/auth/gensec/spnego.c:1154: uninit_use_in_call: Using uninitialized value ""spnego_out.negTokenTarg.negResult"" when calling ""spnego_write_data"".
 1152|    }
 1153|
 1154|->  if (spnego_write_data(out_mem_ctx, out, &spnego_out) == -1) {
 1155|    DEBUG(1, (""Failed to write SPNEGO reply to NEG_TOKEN_TARG\n""));
 1156|    return NT_STATUS_INVALID_PARAMETER;"

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
auth/gensec/spnego.c