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
Diffstat (limited to '')
-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;
108a64bc55eeca2f96aa1f&follow=1'>Update to man-pages-posix 2017-aJune McEnroe 2020-12-14Update to OpenBSD 6.8June McEnroe 2020-12-14Update to NetBSD 9.1June McEnroe 2020-12-14Update to man-pages 5.09June McEnroe 2020-12-14Update to FreeBSD 12.2June McEnroe 2020-06-08Update to OpenBSD 6.7June McEnroe 2020-05-04Add hack for macOS to search extra man sectionsJune McEnroe 2020-05-04Don't clear MANSECTJune McEnroe