commit 8d1a749: [Minor] Add loop break

Vsevolod Stakhov vsevolod at highsecure.ru
Wed May 12 13:56:04 UTC 2021


Author: Vsevolod Stakhov
Date: 2021-05-12 14:54:24 +0100
URL: https://github.com/rspamd/rspamd/commit/8d1a7494b62d2174aee506b2c939dbea0f20be02 (HEAD -> master)

[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 ++;


More information about the Commits mailing list