aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaimo Niskanen <[email protected]>2016-09-13 10:02:41 +0200
committerRaimo Niskanen <[email protected]>2016-09-13 10:02:41 +0200
commitf2b7659e0c7225ccf692f7d87fe2686fdfe0c3af (patch)
treeacf9ff65e8dc8148d72b52c84c8291d92b0d1e56
parent8437246fc8cc41d56d48b0c6b16dbae7e9c5e11d (diff)
parentec56f41f7a48055896037ac77927b99202371e62 (diff)
downloadotp-f2b7659e0c7225ccf692f7d87fe2686fdfe0c3af.tar.gz
otp-f2b7659e0c7225ccf692f7d87fe2686fdfe0c3af.tar.bz2
otp-f2b7659e0c7225ccf692f7d87fe2686fdfe0c3af.zip
Merge branch 'maint'
-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 ac898b3e9a..cd521f04c5 100644
--- a/lib/crypto/c_src/crypto.c
+++ b/lib/crypto/c_src/crypto.c
@@ -2216,7 +2216,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)
@@ -2542,7 +2542,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);