about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-11-13 01:46:25 -0500
committerJune McEnroe <june@causal.agency>2020-11-13 01:46:25 -0500
commitb2403c529ced224dd68add4306e17c030fa94e44 (patch)
tree1f364fe5a53732c38f772ecf542f63e76d101838
parentCheck bounds of ClientHello extensions length (diff)
downloadpounce-b2403c529ced224dd68add4306e17c030fa94e44.tar.gz
pounce-b2403c529ced224dd68add4306e17c030fa94e44.zip
Disallow / anywhere in server name
-rw-r--r--dispatch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dispatch.c b/dispatch.c
index 624dd40..f4cda87 100644
--- a/dispatch.c
+++ b/dispatch.c
@@ -296,7 +296,7 @@ int main(int argc, char *argv[]) {
 			peek.len = len;
 
 			char *name = serverName();
-			if (!name || name[0] == '.' || name[0] == '/') {
+			if (!name || name[0] == '.' || strchr(name, '/')) {
 				alert(event.ptr[i].fd);
 				eventRemove(i);
 				continue;