return from void function cannot compile on solaris studio (#5385)

This commit is contained in:
stphnlyd 2020-08-12 00:27:44 +08:00 committed by GitHub
parent 77099636b6
commit 95a5bac201
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,7 +37,7 @@ HMAC_CTX *Cryptography_HMAC_CTX_new(void) {
void Cryptography_HMAC_CTX_free(HMAC_CTX *ctx) {
#if CRYPTOGRAPHY_OPENSSL_110_OR_GREATER
return HMAC_CTX_free(ctx);
HMAC_CTX_free(ctx);
#else
if (ctx != NULL) {
HMAC_CTX_cleanup(ctx);