commit 9dbcdbe: [Minor] One more fix

Vsevolod Stakhov vsevolod at highsecure.ru
Tue Dec 8 16:49:06 UTC 2020


Author: Vsevolod Stakhov
Date: 2020-12-08 16:47:06 +0000
URL: https://github.com/rspamd/rspamd/commit/9dbcdbec20e67cf0d2b6ce4a9f124b67f34c7edb (HEAD -> master)

[Minor] One more fix

---
 src/libserver/dkim.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libserver/dkim.c b/src/libserver/dkim.c
index 6158e470a..691daef79 100644
--- a/src/libserver/dkim.c
+++ b/src/libserver/dkim.c
@@ -1843,7 +1843,7 @@ rspamd_dkim_simple_body_step (struct rspamd_dkim_common_ctx *ctx,
 		*remain = octets_remain;
 	}
 
-	return (len != 0);
+	return ((len != 0) && (octets_remain != 0));
 }
 
 static const gchar *


More information about the Commits mailing list