summaryrefslogtreecommitdiff
path: root/accel-pppd/cli/std_cmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'accel-pppd/cli/std_cmd.c')
-rw-r--r--accel-pppd/cli/std_cmd.c2
1 files changed, 1 insertions, 1 deletions
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: