summaryrefslogtreecommitdiff
path: root/gss-genr.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2006-08-19 08:50:57 +1000
committerDamien Miller <djm@mindrot.org>2006-08-19 08:50:57 +1000
commitdeccaa7d0f8e8c8cd8f1f9ebb7d02fe2f456a760 (patch)
treeedf949803932bb1aa4bd9033335aca2022ccba89 /gss-genr.c
parentbb59814cd644f78e82df07d820ed00fa7a25e68a (diff)
- (djm) OpenBSD CVS Sync
- djm@cvs.openbsd.org 2006/08/18 22:41:29 [gss-genr.c] GSSAPI error code should be 0 and not -1; from simon@sxw.org.uk
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);