diff options
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | gss-genr.c | 7 |
2 files changed, 11 insertions, 4 deletions
@@ -13,6 +13,12 @@ | |||
13 | normalise some inconsistent (but harmless) NULL pointer checks | 13 | normalise some inconsistent (but harmless) NULL pointer checks |
14 | spotted by the Stanford SATURN tool, via Isil Dillig; | 14 | spotted by the Stanford SATURN tool, via Isil Dillig; |
15 | ok markus@ deraadt@ | 15 | ok markus@ deraadt@ |
16 | - dtucker@cvs.openbsd.org 2006/08/29 12:02:30 | ||
17 | [gss-genr.c] | ||
18 | Work around a problem in Heimdal that occurs when KRB5CCNAME file is | ||
19 | missing, by checking whether or not kerberos allocated us a context | ||
20 | before attempting to free it. Patch from Simon Wilkinson, tested by | ||
21 | biorn@, ok djm@ | ||
16 | 22 | ||
17 | 20060824 | 23 | 20060824 |
18 | - (dtucker) [openbsd-compat/basename.c] Include errno.h. | 24 | - (dtucker) [openbsd-compat/basename.c] Include errno.h. |
@@ -5315,4 +5321,4 @@ | |||
5315 | - (djm) Trim deprecated options from INSTALL. Mention UsePAM | 5321 | - (djm) Trim deprecated options from INSTALL. Mention UsePAM |
5316 | - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu | 5322 | - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu |
5317 | 5323 | ||
5318 | $Id: ChangeLog,v 1.4513 2006/08/30 01:07:39 djm Exp $ | 5324 | $Id: ChangeLog,v 1.4514 2006/08/30 01:08:04 djm Exp $ |
diff --git a/gss-genr.c b/gss-genr.c index e962942d1..57f12a2dc 100644 --- a/gss-genr.c +++ b/gss-genr.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: gss-genr.c,v 1.16 2006/08/18 22:41:29 djm Exp $ */ | 1 | /* $OpenBSD: gss-genr.c,v 1.17 2006/08/29 12:02:30 dtucker 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. |
@@ -310,8 +310,9 @@ ssh_gssapi_check_mechanism(Gssctxt **ctx, gss_OID oid, const char *host) | |||
310 | major = ssh_gssapi_init_ctx(*ctx, 0, GSS_C_NO_BUFFER, &token, | 310 | major = ssh_gssapi_init_ctx(*ctx, 0, GSS_C_NO_BUFFER, &token, |
311 | NULL); | 311 | NULL); |
312 | gss_release_buffer(&minor, &token); | 312 | gss_release_buffer(&minor, &token); |
313 | gss_delete_sec_context(&minor, &(*ctx)->context, | 313 | if ((*ctx)->context != GSS_C_NO_CONTEXT) |
314 | GSS_C_NO_BUFFER); | 314 | gss_delete_sec_context(&minor, &(*ctx)->context, |
315 | GSS_C_NO_BUFFER); | ||
315 | } | 316 | } |
316 | 317 | ||
317 | if (GSS_ERROR(major)) | 318 | if (GSS_ERROR(major)) |