summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2012-12-10 15:02:43 +0100
committerGünther Deschner <gd@samba.org>2012-12-12 15:00:02 +0100
commitb4accd365d4758f3f4453083c24c59615051d863 (patch)
treee62866ac23d4c2b68efb84e496f790d1527cdc76
parentf670cae69d85a8bfc14ab7d9cd38ab0e568e6929 (diff)
downloadsamba-b4accd365d4758f3f4453083c24c59615051d863.tar.gz
samba-b4accd365d4758f3f4453083c24c59615051d863.tar.bz2
samba-b4accd365d4758f3f4453083c24c59615051d863.zip
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>
-rw-r--r--source4/libcli/smb_composite/sesssetup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/libcli/smb_composite/sesssetup.c b/source4/libcli/smb_composite/sesssetup.c
index 4be1ea0cef..f305a5e955 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,