MicrochipTech/cryptoauth-openssl-engine

Copy engine pointer without increasing refcounter

webconn opened this issue · 0 comments

This code makes OpenSSL app fail on exit (e->funct_ref < 0).

According to other OpenSSL modules, it should be done like this:

if (!ENGINE_init(e)) {
    break;
}
pkey->engine = e;