summaryrefslogtreecommitdiff
path: root/auth2-gss.c
diff options
context:
space:
mode:
authordjm <djm>2006-03-25 13:04:53 +0000
committerdjm <djm>2006-03-25 13:04:53 +0000
commitf2f2d94017c3964ae0d6ccd406f61f05cfbd0771 (patch)
treea46453264af6a23b12675ffaae295a4e1c8e8a49 /auth2-gss.c
parent7b4ee8e6730771db15e80ceb3d8bc2e906ddb7ca (diff)
downloadopenssh-f2f2d94017c3964ae0d6ccd406f61f05cfbd0771.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);
}