From b4accd365d4758f3f4453083c24c59615051d863 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 10 Dec 2012 15:02:43 +0100 Subject: [PATCH] s4-libcli: Fix comparison of chosen_oid. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Found by Coverity. Signed-off-by: Andreas Schneider Reviewed-by: Günther Deschner --- source4/libcli/smb_composite/sesssetup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source4/libcli/smb_composite/sesssetup.c b/source4/libcli/smb_composite/sesssetup.c index 4be1ea0cef7..f305a5e9552 100644 --- a/source4/libcli/smb_composite/sesssetup.c +++ b/source4/libcli/smb_composite/sesssetup.c @@ -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,