summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordjm <djm>2006-08-18 22:50:57 +0000
committerdjm <djm>2006-08-18 22:50:57 +0000
commite0a9aaccb7abf525ee2bca486caf127ced319948 (patch)
treef5bb6301c5a957727128b79f5378c70710e49512
parente0a4ac617f54f4ee3b16cdd001e16976f122a2f6 (diff)
downloadopenssh-e0a9aaccb7abf525ee2bca486caf127ced319948.tar.gz
- (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
-rw-r--r--ChangeLog8
-rw-r--r--gss-genr.c4
2 files changed, 9 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index d813c1fc..9f956a57 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+20060819
+ - (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
+
20060818
- (dtucker) [configure.ac openbsd-compat/bsd-closefrom.c] Resync with
closefrom.c from sudo.
@@ -5266,4 +5272,4 @@
- (djm) Trim deprecated options from INSTALL. Mention UsePAM
- (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
-$Id: ChangeLog,v 1.4496 2006/08/18 22:38:23 djm Exp $
+$Id: ChangeLog,v 1.4497 2006/08/18 22:50:57 djm Exp $
diff --git a/gss-genr.c b/gss-genr.c
index 2ea2077c..e962942d 100644
--- a/gss-genr.c
+++ b/gss-genr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: gss-genr.c,v 1.15 2006/08/18 14:40:34 djm Exp $ */
+/* $OpenBSD: gss-genr.c,v 1.16 2006/08/18 22:41:29 djm Exp $ */
/*
* 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)
/* RFC 4462 says we MUST NOT do SPNEGO */
if (oid->length == spnego_oid.length &&
(memcmp(oid->elements, spnego_oid.elements, oid->length) == 0))
- return -1;
+ return 0; /* false */
ssh_gssapi_build_ctx(ctx);
ssh_gssapi_set_oid(*ctx, oid);