summaryrefslogtreecommitdiff
path: root/libexec/login_krb5
diff options
context:
space:
mode:
authorJacek Masiulaniec <jacekm@cvs.openbsd.org>2009-01-14 14:53:45 +0000
committerJacek Masiulaniec <jacekm@cvs.openbsd.org>2009-01-14 14:53:45 +0000
commit849a175edd0961c922abd025b62aaa7a9810ddcc (patch)
tree691eb73b62a6fc7f0a0df4cea1d3c5075a9d8667 /libexec/login_krb5
parent31e5ef7925e13b96b2b00a8aa8804afe13fda306 (diff)
context could be used after being freed by krb5_free_context; ok millert@
Diffstat (limited to 'libexec/login_krb5')
-rw-r--r--libexec/login_krb5/login_krb5.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/login_krb5/login_krb5.c b/libexec/login_krb5/login_krb5.c
index 4c1ba79686a..3fb44d21b07 100644
--- a/libexec/login_krb5/login_krb5.c
+++ b/libexec/login_krb5/login_krb5.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: login_krb5.c,v 1.24 2008/04/24 14:04:19 todd Exp $ */
+/* $OpenBSD: login_krb5.c,v 1.25 2009/01/14 14:53:44 jacekm Exp $ */
/*-
* Copyright (c) 2001, 2002 Hans Insulander <hin@openbsd.org>.
@@ -214,9 +214,9 @@ krb5_login(char *username, char *invokinguser, char *password, int login,
break;
}
- krb5_free_context(context);
krb5_free_principal(context, princ);
krb5_cc_close(context, ccache);
+ krb5_free_context(context);
return (return_code);
}