summaryrefslogtreecommitdiff
path: root/auth2-gss.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2006-03-26 00:04:53 +1100
committerDamien Miller <djm@mindrot.org>2006-03-26 00:04:53 +1100
commitf23c09670a2a7a0339daffb7f3340756f6d539de (patch)
treef19b4797b21af363d4560ed55673cefce4b97aa4 /auth2-gss.c
parent51b4f821231446fd36baf991a3d08dd83fc7f6e9 (diff)
downloadopenssh-git-f23c09670a2a7a0339daffb7f3340756f6d539de.tar.gz
- djm@cvs.openbsd.org 2006/03/20 04:07:22
[auth2-gss.c] GSSAPI related leaks detected by Coverity via elad AT netbsd.org; reviewed by simon AT sxw.org.uk; deraadt@ ok
Diffstat (limited to 'auth2-gss.c')
-rw-r--r--auth2-gss.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/auth2-gss.c b/auth2-gss.c
index 95844a05..bbb6db96 100644
--- a/auth2-gss.c
+++ b/auth2-gss.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: auth2-gss.c,v 1.12 2005/10/13 22:24:31 stevesk Exp $ */
+/* $OpenBSD: auth2-gss.c,v 1.13 2006/03/20 04:07:22 djm Exp $ */
/*
* Copyright (c) 2001-2003 Simon Wilkinson. All rights reserved.
@@ -100,6 +100,8 @@ userauth_gssapi(Authctxt *authctxt)
}
if (GSS_ERROR(PRIVSEP(ssh_gssapi_server_ctx(&ctxt, &goid)))) {
+ if (ctxt != NULL)
+ ssh_gssapi_delete_ctx(&ctxt);
xfree(doid);
return (0);
}