Also hook up MSHUTDOWN function which appears to have never been enabled.
Patch by Kamesh Jayachandran
"openssl",
openssl_functions,
PHP_MINIT(openssl),
- NULL,
+ PHP_MSHUTDOWN(openssl),
NULL,
NULL,
PHP_MINFO(openssl),
req.priv_key = NULL; /* make sure the cleanup code doesn't zap it! */
}
}
+ else {
+ if (!we_made_the_key) {
+ /* if we have not made the key we are not supposed to zap it by calling dispose! */
+ req.priv_key = NULL;
+ }
+ }
}
}
}