>From 7e65520a544c08295f0c52b8ae3eb490b2482af1 Mon Sep 17 00:00:00 2001 From: Peter Kasza Date: Fri, 23 Jun 2017 21:46:17 +0200 Subject: [PATCH 2/3] fix segfault in unsetcmd when getting a single space as an argument --- telnet/commands.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telnet/commands.c b/telnet/commands.c index 57e33c2..8145637 100644 --- a/telnet/commands.c +++ b/telnet/commands.c @@ -1184,7 +1184,7 @@ unsetcmd (int argc, char *argv[]) { name = *argv++; ct = getset (name); - if (ct == 0) + if (ct == 0 || (!Ambiguous(ct) && ct->handler == 0 && ct->charp == 0)) { c = GETTOGGLE (name); if (c == 0) -- 2.13.1