check return length

This commit is contained in:
Love Hornquist Astrand
2011-05-12 21:09:28 -07:00
committed by Love Hörnquist Åstrand
parent 9a21fddb70
commit b8c168e565

View File

@@ -1481,6 +1481,7 @@ add_enc_pa_rep(kdc_request_t r)
free_Checksum(&checksum);
if (ret)
return ret;
heim_assert(cdata.length == len, "ASN.1 internal error");
if (r->ek.encrypted_pa_data == NULL) {
ALLOC(r->ek.encrypted_pa_data);