summaryrefslogtreecommitdiffstats
path: root/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'config.c')
-rw-r--r--config.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/config.c b/config.c
index 0dbe61ed..ad75411c 100644
--- a/config.c
+++ b/config.c
@@ -589,9 +589,12 @@ void homehostline(char *line)
for (w=dl_next(line); w != line ; w=dl_next(w)) {
if (strcasecmp(w, "<ignore>")==0)
require_homehost = 0;
- else if (home_host == NULL)
- home_host = strdup(w);
- else
+ else if (home_host == NULL) {
+ if (strcasecmp(w, "<none>")==0)
+ home_host = strdup("");
+ else
+ home_host = strdup(w);
+ }else
fprintf(stderr, Name ": excess host name on HOMEHOST line: %s - ignored\n",
w);
}