summaryrefslogtreecommitdiff
path: root/tools/libskrewt.c
diff options
context:
space:
mode:
authorJohn Denker <jsd@av8n.com>2012-11-24 21:21:37 -0800
committerJohn Denker <jsd@av8n.com>2012-11-24 21:21:37 -0800
commit153b9229315e87ffcdbc12a6d26ef78d4ed33d16 (patch)
tree617d269d19c99b4281055dbc0f3f190d934619c2 /tools/libskrewt.c
parent9a783cb0791327367d85b63bf3e0e4e1aa215163 (diff)
don't print blank lines in log if no valid SPF result
Diffstat (limited to 'tools/libskrewt.c')
-rw-r--r--tools/libskrewt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/libskrewt.c b/tools/libskrewt.c
index f51a8bc..c8f2ccd 100644
--- a/tools/libskrewt.c
+++ b/tools/libskrewt.c
@@ -223,7 +223,8 @@ void check_spf(name_tester& fqdn, const string ip) {
"", /* rcpt_to */
0 /* verbosity */
);
- cerr << progid << " " << my_spf.explain() << endl;
+ string exp = my_spf.explain();
+ if (exp != "") cerr << progid << " " << exp << endl;
// keep a copy of the result:
fqdn.spf = neutral;
if (my_spf.result == SPF_RESULT_PASS) fqdn.spf = pass;