From dd64191e02df0a13b29345e4c50fe03e039dc207 Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Wed, 6 Jun 2012 19:13:13 -0400 Subject: Don't free caller's principal in vfy_increds #7125 took out the copy of the krb5_verify_init_creds server argument but left in the corresponding free, so it was freeing a caller-owned principal. Reported by Russ Allbery. ticket: 7162 --- src/lib/krb5/krb/vfy_increds.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src') diff --git a/src/lib/krb5/krb/vfy_increds.c b/src/lib/krb5/krb/vfy_increds.c index 5fca70025..14acb0a44 100644 --- a/src/lib/krb5/krb/vfy_increds.c +++ b/src/lib/krb5/krb/vfy_increds.c @@ -317,7 +317,6 @@ cleanup: if (defkeytab != NULL) krb5_kt_close(context, defkeytab); - krb5_free_principal(context, server); free_princ_list(context, host_princs); return ret; -- cgit