diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2011-02-13 01:02:30 +0300 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2011-02-13 01:02:30 +0300 |
commit | 28169388eba3c9615be98588557fcaeb87da1874 (patch) | |
tree | 4f5f97cd545b81d2b0300e29d6d6a3fa6cda3a68 /accel-pppd/cli/std_cmd.c | |
parent | 38077f9b9d9e86f4a7d2317b3697ea4370889999 (diff) | |
download | accel-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.c | 2 |
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: |