From: Timo Sirainen Date: Thu, 5 May 2022 17:30:28 +0000 (+0300) Subject: lib-auth: auth_proxy_parse_redirect() - Return failure if host is empty X-Git-Tag: 2.4.0~4051 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=08ae7e4dc401d459e980ef9950394bbfc8a404f3;p=thirdparty%2Fdovecot%2Fcore.git lib-auth: auth_proxy_parse_redirect() - Return failure if host is empty --- diff --git a/src/lib-auth/auth-proxy.c b/src/lib-auth/auth-proxy.c index a06e68dbd8..751b48018a 100644 --- a/src/lib-auth/auth-proxy.c +++ b/src/lib-auth/auth-proxy.c @@ -91,5 +91,7 @@ bool auth_proxy_parse_redirect(const char *target, const char **destuser_r, } if (net_str2hostport(target, 0, host_r, port_r) < 0) return FALSE; + if ((*host_r)[0] == '\0') + return FALSE; return TRUE; }