gods

a simple blocklist for ssh
Log | Files | Refs | README | LICENSE

commit 36f49657d2c7e7caa83b968afb287aa3da81407f
parent 2cb0b6bd5d9c3b87a829b3f7a4c53650a548d639
Author: Naveen Narayanan <zerous@nocebo.space>
Date:   Fri,  1 Oct 2021 01:49:30 +0200

Fix bug

Check lp prior to consumption

Diffstat:
Mparser.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/parser.c b/parser.c @@ -135,6 +135,9 @@ word() { int n; + if (!strlen(lp)) + return 0; + while(isspace(*lp)) ++lp;