commit 568530934d76588ee7dc8454e4e4013ee431d01f
parent b72285a2f9c8d7be97f8ba0d96c0f3b9c282b840
Author: Jacob R. Edwards <jacobouno@protonmail.com>
Date: Thu, 24 Dec 2020 01:10:55 -0800
Don't unwind on invalid gopher item
Diffstat:
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/main.c b/main.c
@@ -304,10 +304,8 @@ splitrun(filter **filters, int argc, const char **argv, unsigned int index, char
char *item[GI_NULL + 2];
n = argsplit(item, LEN(item), s, "\t\r", 0) - 1;
- if (n != 4 && (n < 4 || n > 5 || strcmp(item[GI_PLUS], "+") != 0)) {
+ if (n != 4 && (n < 4 || n > 5 || strcmp(item[GI_PLUS], "+") != 0))
warnx("%d: Invalid gopher-item.", index);
- return UNWIND;
- }
if (filters != NULL) {
for (i = 0; filters[i] != NULL; ++i) {