Avoid crashing on bad input.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16980 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -915,6 +915,7 @@ _hx509_parse_private_key(const heim_oid *key_oid,
|
||||
ret = (*md->parse_private_key)(md, data, len, *private_key);
|
||||
if (ret)
|
||||
_hx509_free_private_key(private_key);
|
||||
else
|
||||
(*private_key)->md = md;
|
||||
|
||||
return ret;
|
||||
|
Reference in New Issue
Block a user