diff options
author | June McEnroe <june@causal.agency> | 2020-11-13 01:46:25 -0500 |
---|---|---|
committer | June McEnroe <june@causal.agency> | 2020-11-13 01:46:25 -0500 |
commit | b2403c529ced224dd68add4306e17c030fa94e44 (patch) | |
tree | 1f364fe5a53732c38f772ecf542f63e76d101838 /dispatch.c | |
parent | Check bounds of ClientHello extensions length (diff) | |
download | pounce-b2403c529ced224dd68add4306e17c030fa94e44.tar.gz pounce-b2403c529ced224dd68add4306e17c030fa94e44.zip |
Disallow / anywhere in server name
Diffstat (limited to '')
-rw-r--r-- | dispatch.c | 2 |
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; |