diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2003-09-01 20:44:55 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2003-09-01 20:44:55 +0000 |
commit | d05564fd65fc37bff6dfcb27e754311fd1c3f082 (patch) | |
tree | 75fc5abc7b0fe548d57516ab4b47d957827e2fb5 /usr.bin/ssh/auth2-gss.c | |
parent | 0ee2fe196383024e26902f7f444c039e3d798445 (diff) |
fix leak
Diffstat (limited to 'usr.bin/ssh/auth2-gss.c')
-rw-r--r-- | usr.bin/ssh/auth2-gss.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/ssh/auth2-gss.c b/usr.bin/ssh/auth2-gss.c index feb97d7c318..75b94b00973 100644 --- a/usr.bin/ssh/auth2-gss.c +++ b/usr.bin/ssh/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; |