aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/c_src/crypto.c
diff options
context:
space:
mode:
authorRaimo Niskanen <[email protected]>2016-09-13 09:54:34 +0200
committerRaimo Niskanen <[email protected]>2016-09-13 09:54:34 +0200
commitec56f41f7a48055896037ac77927b99202371e62 (patch)
tree71ba63b5efd544a50f5f60bd8bbf1c5729b6af02 /lib/crypto/c_src/crypto.c
parent600ad7962a67c0484c5e37393dc978c447841b52 (diff)
downloadotp-ec56f41f7a48055896037ac77927b99202371e62.tar.gz
otp-ec56f41f7a48055896037ac77927b99202371e62.tar.bz2
otp-ec56f41f7a48055896037ac77927b99202371e62.zip
Silence warnings in crypto
Diffstat (limited to 'lib/crypto/c_src/crypto.c')
-rw-r--r--lib/crypto/c_src/crypto.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/crypto/c_src/crypto.c b/lib/crypto/c_src/crypto.c
index eee1a88723..00fc81c84f 100644
--- a/lib/crypto/c_src/crypto.c
+++ b/lib/crypto/c_src/crypto.c
@@ -2162,7 +2162,7 @@ static ERL_NIF_TERM dss_verify_nif(ErlNifEnv* env, int argc, const ERL_NIF_TERM
DSA *dsa;
int i;
- if (!argv[0] == atom_sha
+ if (argv[0] != atom_sha
|| !enif_inspect_binary(env, argv[1], &digest_bin)
|| digest_bin.size != SHA_DIGEST_LENGTH
|| !enif_inspect_binary(env, argv[2], &sign_bin)
@@ -2488,7 +2488,7 @@ static ERL_NIF_TERM dss_sign_nif(ErlNifEnv* env, int argc, const ERL_NIF_TERM ar
DSA* dsa;
int i;
- if (!argv[0] == atom_sha
+ if (argv[0] != atom_sha
|| !enif_inspect_binary(env, argv[1], &digest_bin)
|| digest_bin.size != SHA_DIGEST_LENGTH) {
return enif_make_badarg(env);