From 8d1a7494b62d2174aee506b2c939dbea0f20be02 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 12 May 2021 14:54:24 +0100 Subject: [Minor] Add loop break --- src/libserver/url.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libserver/url.c b/src/libserver/url.c index 8a33b4915..1fad034f5 100644 --- a/src/libserver/url.c +++ b/src/libserver/url.c @@ -1136,6 +1136,7 @@ rspamd_web_parse (struct http_parser_url *u, const gchar *str, gsize len, } else if (*tp == '/' || *tp == '#' || *tp == '?') { st = parse_domain_start; + break; } tp ++; -- cgit v1.2.3