diff options
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | auth2-gss.c | 4 |
2 files changed, 8 insertions, 2 deletions
@@ -32,6 +32,10 @@ | |||
32 | - deraadt@cvs.openbsd.org 2006/03/19 18:53:12 | 32 | - deraadt@cvs.openbsd.org 2006/03/19 18:53:12 |
33 | [kex.h myproposal.h] | 33 | [kex.h myproposal.h] |
34 | spacing | 34 | spacing |
35 | - djm@cvs.openbsd.org 2006/03/20 04:07:22 | ||
36 | [auth2-gss.c] | ||
37 | GSSAPI related leaks detected by Coverity via elad AT netbsd.org; | ||
38 | reviewed by simon AT sxw.org.uk; deraadt@ ok | ||
35 | 39 | ||
36 | 20060318 | 40 | 20060318 |
37 | - (djm) [auth-pam.c] Fix memleak in error path, from Coverity via | 41 | - (djm) [auth-pam.c] Fix memleak in error path, from Coverity via |
@@ -4224,4 +4228,4 @@ | |||
4224 | - (djm) Trim deprecated options from INSTALL. Mention UsePAM | 4228 | - (djm) Trim deprecated options from INSTALL. Mention UsePAM |
4225 | - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu | 4229 | - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu |
4226 | 4230 | ||
4227 | $Id: ChangeLog,v 1.4233 2006/03/25 13:04:32 djm Exp $ | 4231 | $Id: ChangeLog,v 1.4234 2006/03/25 13:04:53 djm Exp $ |
diff --git a/auth2-gss.c b/auth2-gss.c index 95844a05e..bbb6db964 100644 --- a/auth2-gss.c +++ b/auth2-gss.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: auth2-gss.c,v 1.12 2005/10/13 22:24:31 stevesk Exp $ */ | 1 | /* $OpenBSD: auth2-gss.c,v 1.13 2006/03/20 04:07:22 djm Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 2001-2003 Simon Wilkinson. All rights reserved. | 4 | * Copyright (c) 2001-2003 Simon Wilkinson. All rights reserved. |
@@ -100,6 +100,8 @@ userauth_gssapi(Authctxt *authctxt) | |||
100 | } | 100 | } |
101 | 101 | ||
102 | if (GSS_ERROR(PRIVSEP(ssh_gssapi_server_ctx(&ctxt, &goid)))) { | 102 | if (GSS_ERROR(PRIVSEP(ssh_gssapi_server_ctx(&ctxt, &goid)))) { |
103 | if (ctxt != NULL) | ||
104 | ssh_gssapi_delete_ctx(&ctxt); | ||
103 | xfree(doid); | 105 | xfree(doid); |
104 | return (0); | 106 | return (0); |
105 | } | 107 | } |