]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix issue with empty messages and dkim
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 26 Aug 2016 13:32:36 +0000 (14:32 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 31 Aug 2016 11:10:45 +0000 (12:10 +0100)
Issue: #880

src/libserver/dkim.c

index d38fe6cb1e4bac10b5c352b261cbccfcd07ec6d4..3c4d7ed36e96805c36d88afffbee6d4e29a1fd94 100644 (file)
@@ -1316,7 +1316,7 @@ rspamd_dkim_skip_empty_lines (const gchar *start, const gchar *end,
        } state = init;
        guint skip = 0;
 
-       while (p >= start + 1) {
+       while (p >= start) {
                switch (state) {
                case init:
                        if (*p == '\r') {