diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-07-28 19:42:04 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-07-28 19:42:04 +0400 |
commit | e0fac6fb14601522faf67071d2a163dfa38563a2 (patch) | |
tree | 20d7a50ce322d5027c7b59066d3d82b29bc71094 /src/message.c | |
parent | 111a26e20eb95ea3305c8cb761b0286f4d5098e1 (diff) | |
download | rspamd-e0fac6fb14601522faf67071d2a163dfa38563a2.tar.gz rspamd-e0fac6fb14601522faf67071d2a163dfa38563a2.zip |
* Another try to save regexps in cache correctly
* Improve test logs for regexps
Diffstat (limited to 'src/message.c')
-rw-r--r-- | src/message.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/message.c b/src/message.c index f819d4daf..772bf8053 100644 --- a/src/message.c +++ b/src/message.c @@ -709,7 +709,7 @@ mime_foreach_callback (GMimeObject * part, gpointer user_data) mime_part->content = part_content; mime_part->parent = task->parser_parent_part; /* Extract checksums for some types */ - if (g_ascii_strcasecmp (type->type, "image") == 0) { + if (g_ascii_strcasecmp (type->type, "image") == 0 && part_content->len > 0) { mime_part->checksum = g_compute_checksum_for_data (G_CHECKSUM_MD5, part_content->data, part_content->len); memory_pool_add_destructor (task->task_pool, (pool_destruct_func)g_free, mime_part->checksum); } |