summaryrefslogtreecommitdiffstats
path: root/auth2-gss.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2003-09-02 14:59:01 +0200
committerDamien Miller <djm@mindrot.org>2003-09-02 14:59:01 +0200
commit982d326045fd776c4c2b831e4c94515b0c895df9 (patch)
tree45277a00095e0b8ad669605c9f5f90b9a00d2dbf /auth2-gss.c
parent - markus@cvs.openbsd.org 2003/09/01 18:15:50 (diff)
downloadopenssh-982d326045fd776c4c2b831e4c94515b0c895df9.tar.xz
openssh-982d326045fd776c4c2b831e4c94515b0c895df9.zip
- markus@cvs.openbsd.org 2003/09/01 20:44:54
[auth2-gss.c] fix leak
Diffstat (limited to 'auth2-gss.c')
-rw-r--r--auth2-gss.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/auth2-gss.c b/auth2-gss.c
index feb97d7c3..75b94b009 100644
--- a/auth2-gss.c
+++ b/auth2-gss.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: auth2-gss.c,v 1.2 2003/08/24 17:36:51 deraadt Exp $ */
+/* $OpenBSD: auth2-gss.c,v 1.3 2003/09/01 20:44:54 markus Exp $ */
/*
* Copyright (c) 2001-2003 Simon Wilkinson. All rights reserved.
@@ -98,8 +98,10 @@ userauth_gssapi(Authctxt *authctxt)
return (0);
}
- if (GSS_ERROR(PRIVSEP(ssh_gssapi_server_ctx(&ctxt, &oid))))
+ if (GSS_ERROR(PRIVSEP(ssh_gssapi_server_ctx(&ctxt, &oid)))) {
+ xfree(doid);
return (0);
+ }
authctxt->methoddata=(void *)ctxt;