1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

s4-libcli: Fix comparison of chosen_oid.

Found by Coverity.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Günther Deschner <gd@samba.org>
This commit is contained in:
Andreas Schneider 2012-12-10 15:02:43 +01:00 committed by Günther Deschner
parent f670cae69d
commit b4accd365d

View File

@ -515,7 +515,7 @@ static NTSTATUS session_setup_spnego(struct composite_context *c,
}
}
if ((const void *)chosen_oid == (const void *)GENSEC_OID_SPNEGO) {
if (strequal(chosen_oid, GENSEC_OID_SPNEGO)) {
status = gensec_update(session->gensec, state,
c->event_ctx,
session->transport->negotiate.secblob,