diff options
author | 2014-05-30 06:24:16 +0000 | |
---|---|---|
committer | 2014-05-30 06:24:16 +0000 | |
commit | f3f95c1e98f301fcfcdcd65ade3c29d5455d65cb (patch) | |
tree | 4826709437a1aa6a5868f1216c440fc8bfa921a8 /lib/libcrypto/rsa/rsa_oaep.c | |
parent | more: no need for null check before free (diff) | |
download | wireguard-openbsd-f3f95c1e98f301fcfcdcd65ade3c29d5455d65cb.tar.xz wireguard-openbsd-f3f95c1e98f301fcfcdcd65ade3c29d5455d65cb.zip |
more: no need to null check before free; ok guenther
Diffstat (limited to 'lib/libcrypto/rsa/rsa_oaep.c')
-rw-r--r-- | lib/libcrypto/rsa/rsa_oaep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libcrypto/rsa/rsa_oaep.c b/lib/libcrypto/rsa/rsa_oaep.c index a107e89b81c..53d35621a37 100644 --- a/lib/libcrypto/rsa/rsa_oaep.c +++ b/lib/libcrypto/rsa/rsa_oaep.c @@ -179,7 +179,7 @@ decoding_err: /* to avoid chosen ciphertext attacks, the error message should not reveal * which kind of decoding error happened */ RSAerr(RSA_F_RSA_PADDING_CHECK_PKCS1_OAEP, RSA_R_OAEP_DECODING_ERROR); - if (db != NULL) free(db); + free(db); return -1; } |