summaryrefslogtreecommitdiff
path: root/accel-pppd/cli/std_cmd.c
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2011-02-13 01:02:30 +0300
committerDmitry Kozlov <xeb@mail.ru>2011-02-13 01:02:30 +0300
commit28169388eba3c9615be98588557fcaeb87da1874 (patch)
tree4f5f97cd545b81d2b0300e29d6d6a3fa6cda3a68 /accel-pppd/cli/std_cmd.c
parent38077f9b9d9e86f4a7d2317b3697ea4370889999 (diff)
downloadaccel-ppp-28169388eba3c9615be98588557fcaeb87da1874.tar.gz
accel-ppp-28169388eba3c9615be98588557fcaeb87da1874.zip
cli: terminate: check username is not NULL
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: