aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-01-01 12:21:49 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-01-01 12:21:49 +0000
commit4406433d18e886d35ab674a8265fc9737a1b44af (patch)
tree14ceda0562114004dfa30bbd14c049cb0ffdae75 /src
parent7cb713aa457bb0169b2c9811555c0bc071d3c3e9 (diff)
downloadrspamd-4406433d18e886d35ab674a8265fc9737a1b44af.tar.gz
rspamd-4406433d18e886d35ab674a8265fc9737a1b44af.zip
Fix macro expansion length calculation.
Diffstat (limited to 'src')
-rw-r--r--src/libserver/spf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libserver/spf.c b/src/libserver/spf.c
index 06b53c184..758df486b 100644
--- a/src/libserver/spf.c
+++ b/src/libserver/spf.c
@@ -1136,9 +1136,9 @@ expand_spf_macro (struct rspamd_task *task, struct spf_record *rec,
switch (g_ascii_tolower (*p)) {
case 'i':
#ifdef HAVE_INET_PTON
- len += sizeof (INET6_ADDRSTRLEN) - 1;
+ len += INET6_ADDRSTRLEN - 1;
#else
- len += sizeof (INET_ADDRSTRLEN) - 1;
+ len += INET_ADDRSTRLEN - 1;
#endif
break;
case 's':