summaryrefslogtreecommitdiffstats
path: root/src/lib/krb5
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2012-06-06 19:13:13 -0400
committerGreg Hudson <ghudson@mit.edu>2012-06-06 19:13:13 -0400
commitdd64191e02df0a13b29345e4c50fe03e039dc207 (patch)
tree44638a5a4c3fcb23bd91b17bd367c4c27cf38808 /src/lib/krb5
parent1e8df1bd63ace7ddc4cafc93269f523d7c94585a (diff)
downloadkrb5-dd64191e02df0a13b29345e4c50fe03e039dc207.tar.gz
krb5-dd64191e02df0a13b29345e4c50fe03e039dc207.tar.xz
krb5-dd64191e02df0a13b29345e4c50fe03e039dc207.zip
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
Diffstat (limited to 'src/lib/krb5')
-rw-r--r--src/lib/krb5/krb/vfy_increds.c1
1 files changed, 0 insertions, 1 deletions
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;