From 28169388eba3c9615be98588557fcaeb87da1874 Mon Sep 17 00:00:00 2001 From: Dmitry Kozlov Date: Sun, 13 Feb 2011 01:02:30 +0300 Subject: cli: terminate: check username is not NULL --- accel-pppd/cli/std_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accel-pppd/cli/std_cmd.c b/accel-pppd/cli/std_cmd.c index 43407f19..0754b19c 100644 --- a/accel-pppd/cli/std_cmd.c +++ b/accel-pppd/cli/std_cmd.c @@ -161,7 +161,7 @@ static int terminate_exec2(int key, char * const *f, int f_cnt, void *cli) list_for_each_entry(ppp, &ppp_list, entry) { switch (key) { case 0: - if (strcmp(ppp->username, f[2])) + if (!ppp->username || strcmp(ppp->username, f[2])) continue; break; case 1: -- cgit v1.2.3