curl_sha512_256.c fixup

This commit is contained in:
Viktor Szakats 2026-07-27 13:40:30 +02:00
parent 029d4cc94e
commit dec4035390
No known key found for this signature in database

View file

@ -173,6 +173,8 @@ static CURLcode Curl_sha512_256_finish(unsigned char *digest, void *in)
CURLE_OK : CURLE_BAD_FUNCTION_ARGUMENT;
#endif /* NEED_NETBSD_SHA512_256_WORKAROUND */
}
else
result = CURLE_OK;
EVP_MD_CTX_free(*ctx);
*ctx = NULL;
return result;