aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorcorvid <devnull@localhost>2014-04-04 02:17:25 +0000
committercorvid <devnull@localhost>2014-04-04 02:17:25 +0000
commit632423b63a86cf02fd7df3be547aaedf3ceffc81 (patch)
tree36a2a395b295cc4dd9a0d0a5f6ac5a7d44b5367d /src
parentc5f63859ebe649e417377767d7461fd8c61da0af (diff)
improve MSG
Diffstat (limited to 'src')
-rw-r--r--src/domain.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/domain.c b/src/domain.c
index 70cdaaa3..980b2c67 100644
--- a/src/domain.c
+++ b/src/domain.c
@@ -144,8 +144,10 @@ bool_t a_Domain_permit(const DilloUrl *source, const DilloUrl *dest)
}
}
- if (ret == FALSE)
+ if (ret == FALSE) {
+ if (source_host[0] == '\0')
+ source_host = "(none)";
MSG("Domain: DENIED from %s to %s.\n", source_host, dest_host);
-
+ }
return ret;
}