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;
}
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;
}