From: Martin Mares Date: Fri, 18 Nov 2016 21:41:11 +0000 (+0100) Subject: Ignore missing and empty rhost field X-Git-Tag: v1.0~1 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=b5f808cc506202260d0204a987e53e8122a92188;p=bouncer.git Ignore missing and empty rhost field --- 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))