projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
1. Changes for s_client.c to make it return non-zero exit code in case
[openssl.git]
/
crypto
/
hmac
/
hm_pmeth.c
diff --git
a/crypto/hmac/hm_pmeth.c
b/crypto/hmac/hm_pmeth.c
index 27a5c8ea572ce87b8752d34448a9e43595373c1c..6355a44413e6eaf9c23bc6777631e622f1de352c 100644
(file)
--- a/
crypto/hmac/hm_pmeth.c
+++ b/
crypto/hmac/hm_pmeth.c
@@
-116,7
+116,8
@@
static void pkey_hmac_cleanup(EVP_PKEY_CTX *ctx)
HMAC_CTX_cleanup(&hctx->ctx);
if (hctx->ktmp.data)
{
- OPENSSL_cleanse(hctx->ktmp.data, hctx->ktmp.length);
+ if (hctx->ktmp.length)
+ OPENSSL_cleanse(hctx->ktmp.data, hctx->ktmp.length);
OPENSSL_free(hctx->ktmp.data);
hctx->ktmp.data = NULL;
}