aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2011-02-03 20:29:27 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2011-02-03 20:29:27 +0300
commit65f15e69284e38d5bbf2177f4466975eca5779b8 (patch)
tree2966f19baebf839fe02b5823b054a9539d921e6c /lib
parent99cb83cd06ca693a032616361bd0b1ae1efabdba (diff)
downloadrspamd-65f15e69284e38d5bbf2177f4466975eca5779b8.tar.gz
rspamd-65f15e69284e38d5bbf2177f4466975eca5779b8.zip
* New module for checking emails inside messages (rules based, like multimap)
* Emails now are separated from urls and urls checks * Add ability to check text attachements if option is presented in a configuration Version is 0.3.6 now
Diffstat (limited to 'lib')
-rw-r--r--lib/librspamdclient.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/librspamdclient.c b/lib/librspamdclient.c
index 53c3dcc0f..2bc45c888 100644
--- a/lib/librspamdclient.c
+++ b/lib/librspamdclient.c
@@ -606,9 +606,9 @@ parse_rspamd_header_line (struct rspamd_connection *conn, guint len, GError **er
}
else {
/* Create header value */
- hvalue = g_malloc (p - c + 1);
- hvalue[p - c] = '\0';
- memcpy (hvalue, c, p - c);
+ hvalue = g_malloc (p - c + 2);
+ hvalue[p - c + 1] = '\0';
+ memcpy (hvalue, c, p - c + 1);
g_hash_table_replace (conn->result->headers, hname, hvalue);
state = 99;
}