aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2017-07-20 17:49:28 +0200
committerSverker Eriksson <[email protected]>2017-07-20 17:49:28 +0200
commitcbeeebde1bfefdd09f0401cfe4f43414c7bfa739 (patch)
tree00cbf1adaab39694db3ec8d33d5c8a3262210802
parentaa8df5238a20a539bc90deb68aa39050197ba725 (diff)
parent00a9b77b6cbb4a7159ebdf94181dbac272592192 (diff)
downloadotp-cbeeebde1bfefdd09f0401cfe4f43414c7bfa739.tar.gz
otp-cbeeebde1bfefdd09f0401cfe4f43414c7bfa739.tar.bz2
otp-cbeeebde1bfefdd09f0401cfe4f43414c7bfa739.zip
Merge branch 'maint'
-rw-r--r--lib/crypto/c_src/crypto.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/crypto/c_src/crypto.c b/lib/crypto/c_src/crypto.c
index 52ce00b937..1d9c1e0f88 100644
--- a/lib/crypto/c_src/crypto.c
+++ b/lib/crypto/c_src/crypto.c
@@ -4048,14 +4048,14 @@ printf("\r\n");
RSA *rsa = EVP_PKEY_get1_RSA(pkey);
enif_alloc_binary(RSA_size(rsa), &sig_bin);
len = EVP_MD_size(md);
- ERL_VALGRIND_ASSERT_MEM_DEFINED(digest_bin.data, len);
+ ERL_VALGRIND_ASSERT_MEM_DEFINED(tbs, len);
i = RSA_sign(md->type, tbs, len, sig_bin.data, &siglen, rsa);
RSA_free(rsa);
} else if (argv[0] == atom_dss) {
DSA *dsa = EVP_PKEY_get1_DSA(pkey);
enif_alloc_binary(DSA_size(dsa), &sig_bin);
len = EVP_MD_size(md);
- ERL_VALGRIND_ASSERT_MEM_DEFINED(digest_bin.data, len);
+ ERL_VALGRIND_ASSERT_MEM_DEFINED(tbs, len);
i = DSA_sign(md->type, tbs, len, sig_bin.data, &siglen, dsa);
DSA_free(dsa);
} else if (argv[0] == atom_ecdsa) {
@@ -4063,7 +4063,7 @@ printf("\r\n");
EC_KEY *ec = EVP_PKEY_get1_EC_KEY(pkey);
enif_alloc_binary(ECDSA_size(ec), &sig_bin);
len = EVP_MD_size(md);
- ERL_VALGRIND_ASSERT_MEM_DEFINED(digest_bin.data, len);
+ ERL_VALGRIND_ASSERT_MEM_DEFINED(tbs, len);
i = ECDSA_sign(md->type, tbs, len, sig_bin.data, &siglen, ec);
EC_KEY_free(ec);
#else