summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2009-10-09 14:21:04 +0000
committerGreg Hudson <ghudson@mit.edu>2009-10-09 14:21:04 +0000
commit9cbd0192b06df4ea10d1e06c8a36fd08ed681a53 (patch)
treef040c382590df22036d1505b720603c68c35b783 /src/lib
parentbe4d47ea0d51ab0d7012fdb59ac38e7396f122de (diff)
downloadkrb5-9cbd0192b06df4ea10d1e06c8a36fd08ed681a53.tar.gz
krb5-9cbd0192b06df4ea10d1e06c8a36fd08ed681a53.tar.xz
krb5-9cbd0192b06df4ea10d1e06c8a36fd08ed681a53.zip
In asn1_decode_enc_kdc_rep_part, don't leak the enc_padata field on
invalid representations. ticket: 6571 tags: pullup target_version: 1.7.1 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22872 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/krb5/asn.1/asn1_k_decode.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/krb5/asn.1/asn1_k_decode.c b/src/lib/krb5/asn.1/asn1_k_decode.c
index b1b09371b..fe168088e 100644
--- a/src/lib/krb5/asn.1/asn1_k_decode.c
+++ b/src/lib/krb5/asn.1/asn1_k_decode.c
@@ -668,6 +668,7 @@ error_out:
krb5_free_last_req(NULL, val->last_req);
krb5_free_principal(NULL, val->server);
krb5_free_addresses(NULL, val->caddrs);
+ krb5_free_pa_data(NULL, val->enc_padata);
val->session = NULL;
val->last_req = NULL;
val->server = NULL;