diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-07-14 19:47:56 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-07-14 19:47:56 +0400 |
commit | eb37f21a76f9e30e06bf1c80b2b20d05820a9f93 (patch) | |
tree | ae0087e7a6259db427d76bad38657e2284d4d4ad /src | |
parent | 1d14cf8fc1a73060c18e71bf65ecb6f20823dd9e (diff) | |
download | rspamd-eb37f21a76f9e30e06bf1c80b2b20d05820a9f93.tar.gz rspamd-eb37f21a76f9e30e06bf1c80b2b20d05820a9f93.zip |
Fix coredump on messages with one url only.
Diffstat (limited to 'src')
-rw-r--r-- | src/fuzzy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fuzzy.c b/src/fuzzy.c index 2639d68a7..21ac1eef9 100644 --- a/src/fuzzy.c +++ b/src/fuzzy.c @@ -371,7 +371,7 @@ fuzzy_init_part (struct mime_text_part *part, memory_pool_t *pool, gsize max_dif } } - write_diff = real_len < max_diff; + write_diff = real_len > 0 && real_len < max_diff; if (write_diff) { part->diff_str = fstralloc (pool, real_len); |