summaryrefslogtreecommitdiffstats
path: root/src/libutil
diff options
context:
space:
mode:
Diffstat (limited to 'src/libutil')
-rw-r--r--src/libutil/http.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libutil/http.c b/src/libutil/http.c
index f363969b4..612e898bb 100644
--- a/src/libutil/http.c
+++ b/src/libutil/http.c
@@ -690,7 +690,7 @@ rspamd_http_decrypt_message (struct rspamd_http_connection *conn,
if (conn->cache) {
if (!rspamd_cryptobox_decrypt_nm_inplace (m, dec_len, nonce,
- peer_key->nm, m - rspamd_cryptobox_MACBYTES) != 0) {
+ peer_key->nm, m - rspamd_cryptobox_MACBYTES)) {
msg_err ("cannot verify encrypted message");
return -1;
}
@@ -698,7 +698,7 @@ rspamd_http_decrypt_message (struct rspamd_http_connection *conn,
else {
if (!rspamd_cryptobox_decrypt_inplace (m, dec_len, nonce,
peer_key->pk, priv->local_key->sk,
- m - rspamd_cryptobox_MACBYTES) != 0) {
+ m - rspamd_cryptobox_MACBYTES)) {
msg_err ("cannot verify encrypted message");
return -1;
}