From 3542b79628b986c5b87ea572a45f4c61d5952056 Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Wed, 26 Feb 2020 02:59:22 -0500 Subject: Clean up intercept tag skip "Tag skip" like it's a speedrun :3 --- client.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'client.c') diff --git a/client.c b/client.c index 57895a5..ba5c325 100644 --- a/client.c +++ b/client.c @@ -295,12 +295,10 @@ static void clientParse(struct Client *client, char *line) { static bool intercept(const char *line, size_t len) { if (line[0] == '@') { const char *sp = memchr(line, ' ', len); + if (!sp) return false; + sp++; len -= sp - line; line = sp; - if (len) { - len--; - line++; - } } if (len >= 4 && !memcmp(line, "CAP ", 4)) return true; if (len == 4 && !memcmp(line, "QUIT", 4)) return true; -- cgit 1.4.1 /option> FreeBSD and OpenBSD ports for this software
summary refs log tree commit diff
path: root/security (unfollow)
Commit message (Collapse)Author
2021-01-15Update catgirl to 1.4June McEnroe
2020-12-28Replace cgit-patched with cgit-causal-agencyJune McEnroe
2020-12-18Add notemap portJune McEnroe
2020-12-15Update libretls to 3.3.1June McEnroe
2020-12-15Update catsit to 1.1June McEnroe
2020-12-15Update pounce to 2.1p1June McEnroe
2020-12-15Add imbox portJune McEnroe
2020-11-24Update pounce to 2.1June McEnroe
2020-11-24Update libretls to 3.3.0June McEnroe
2020-11-17Update catgirl to 1.3June McEnroe
2020-11-17Update libretls to 3.2.2June McEnroe
2020-09-29Update libretls to 3.2.1June McEnroe
2020-09-10Update catgirl to 1.2June McEnroe
2020-09-09Add pounce-palaver portJune McEnroe
2020-09-09Update pounce to 2.0June McEnroe
2020-09-09Update litterbox to 1.6June McEnroe
2020-08-23Add scooper portJune McEnroe
2020-08-23Add catsit portJune McEnroe
2020-08-13Update pounce to 1.4p2June McEnroe
2020-08-11Update pounce to 1.4p1June McEnroe
2020-08-10Add litterbox portJune McEnroe
2020-08-10Add missing USES=pkgconfig to pounceJune McEnroe