]> granicus.if.org Git - pdns/commit
Release memory in case of error in the OpenSSL ECDSA constructor
authorRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 3 Sep 2018 07:43:45 +0000 (09:43 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Mon, 3 Sep 2018 07:43:45 +0000 (09:43 +0200)
commitb141d89b27e52c3a8e76ca79ec5201d001f4fce9
tree826d5901cd3c458f3c1dafec2d24c2d3df35d099
parent2ce4ae7be7ef58b94f828695ba066453588d3a56
Release memory in case of error in the OpenSSL ECDSA constructor

The current code will only fail to release the allocated memory if
called with an invalid algorithm, which won't happen, or if a
memory allocation fails in which case this might not matter much.
Still, it's cleaner to release the memory properly and might avoid
mistakes later if we look at this code while implementing a new
crypto backend.
pdns/opensslsigners.cc