summaryrefslogtreecommitdiff
path: root/gss-genr.c
diff options
context:
space:
mode:
Diffstat (limited to 'gss-genr.c')
-rw-r--r--gss-genr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gss-genr.c b/gss-genr.c
index 2ea2077c6..e962942d1 100644
--- a/gss-genr.c
+++ b/gss-genr.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: gss-genr.c,v 1.15 2006/08/18 14:40:34 djm Exp $ */ 1/* $OpenBSD: gss-genr.c,v 1.16 2006/08/18 22:41:29 djm Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2001-2006 Simon Wilkinson. All rights reserved. 4 * Copyright (c) 2001-2006 Simon Wilkinson. All rights reserved.
@@ -301,7 +301,7 @@ ssh_gssapi_check_mechanism(Gssctxt **ctx, gss_OID oid, const char *host)
301 /* RFC 4462 says we MUST NOT do SPNEGO */ 301 /* RFC 4462 says we MUST NOT do SPNEGO */
302 if (oid->length == spnego_oid.length && 302 if (oid->length == spnego_oid.length &&
303 (memcmp(oid->elements, spnego_oid.elements, oid->length) == 0)) 303 (memcmp(oid->elements, spnego_oid.elements, oid->length) == 0))
304 return -1; 304 return 0; /* false */
305 305
306 ssh_gssapi_build_ctx(ctx); 306 ssh_gssapi_build_ctx(ctx);
307 ssh_gssapi_set_oid(*ctx, oid); 307 ssh_gssapi_set_oid(*ctx, oid);