]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Add loop break
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 12 May 2021 13:54:24 +0000 (14:54 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 12 May 2021 13:54:24 +0000 (14:54 +0100)
src/libserver/url.c

index 8a33b49157799f52c74fe55dc9c2823df52b40a7..1fad034f5404def7611d68a2a398797c374e0461 100644 (file)
@@ -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 ++;