From 849a175edd0961c922abd025b62aaa7a9810ddcc Mon Sep 17 00:00:00 2001 From: Jacek Masiulaniec Date: Wed, 14 Jan 2009 14:53:45 +0000 Subject: context could be used after being freed by krb5_free_context; ok millert@ --- libexec/login_krb5/login_krb5.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libexec/login_krb5') 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 . @@ -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); } -- cgit v1.2.3