# HG changeset patch # User Carl Byington # Date 1488934367 28800 # Node ID 74baa26dbe7ad46ecc79308d5d71d572360cc882 # Parent d08da4b058e8384296c46dc742cee3a21b157986 only ntohl() once during recursive spf txt processing diff -r d08da4b058e8 -r 74baa26dbe7a src/context.cpp --- a/src/context.cpp Tue Mar 07 16:49:49 2017 -0800 +++ b/src/context.cpp Tue Mar 07 16:52:47 2017 -0800 @@ -1214,7 +1214,7 @@ if (st == token_require_signed) { // not signed by a required signer, but maybe passes strong spf check // only check spf if the list of required signers is not a single blank. - if (strcmp(dk->signer, " ") && resolve_spf(from, priv->ip, priv)) { + if (strcmp(dk->signer, " ") && resolve_spf(from, ntohl(priv->ip), priv)) { log(queueid, "spf pass for %s rather than required dkim signer", from); return token_white; }