lsh123 / xmlsec

XML Security Library
Other
127 stars 97 forks source link

(xmlsec-gcrypt) Fix double free in xmlSecGCryptAsymKeyDataGenerate #794

Closed thalman closed 1 month ago

thalman commented 1 month ago

When xmlSecGCryptAsymKeyDataAdoptKey fails, key_pair in not set to NULL despite being freed in adopt function.

lsh123 commented 1 month ago

Argh, thanks for catching it. The PR #790 was slightly incorrect. The #795 should fix it.