From b5f808cc506202260d0204a987e53e8122a92188 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Fri, 18 Nov 2016 22:41:11 +0100 Subject: [PATCH] Ignore missing and empty rhost field --- bouncer.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bouncer.c b/bouncer.c index cb13df8..08f6571 100644 --- a/bouncer.c +++ b/bouncer.c @@ -408,6 +408,9 @@ static void parse_failure(char *p, int cnt) rhost = val; } + if (!rhost || !rhost[0]) + return; + // Act on the message struct addr addr; if (addr_parse(&addr, rhost)) -- 2.39.2