From: Theodore Tso Date: Wed, 1 Dec 1993 22:24:15 +0000 (+0000) Subject: Free cred->server before overwriting it X-Git-Tag: krb5-1.0-beta3~120 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d97deb439175f77cc40f53156d78fc46d63aed36;p=krb5.git Free cred->server before overwriting it git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3058 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/krb/gc_via_tgt.c b/src/lib/krb5/krb/gc_via_tgt.c index 64d38d9b7..d6ef9119b 100644 --- a/src/lib/krb5/krb/gc_via_tgt.c +++ b/src/lib/krb5/krb/gc_via_tgt.c @@ -202,6 +202,10 @@ OLDDECLARG(krb5_creds *, cred) return retval; } } + /* + * Free cred->server before overwriting it. + */ + krb5_free_principal(cred->server); if (retval = krb5_copy_principal(dec_rep->enc_part2->server, &cred->server)) { cleanup();