diff options
author | Kozlov Dmitry <xeb@mail.ru> | 2012-11-01 18:06:28 +0400 |
---|---|---|
committer | Kozlov Dmitry <xeb@mail.ru> | 2012-11-01 18:06:28 +0400 |
commit | 4cbea24a9e2a71f6586a107c1e5ad4f2dc85b871 (patch) | |
tree | 0a6f5dc7556176b186d782d7405de8fc89a80ef6 | |
parent | 97a3941e9b75cbd9c780975c136505b529a7effc (diff) | |
download | accel-ppp-4cbea24a9e2a71f6586a107c1e5ad4f2dc85b871.tar.gz accel-ppp-4cbea24a9e2a71f6586a107c1e5ad4f2dc85b871.zip |
cli: terminate username: check for username is not NULL
-rw-r--r-- | accel-pppd/cli/std_cmd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/accel-pppd/cli/std_cmd.c b/accel-pppd/cli/std_cmd.c index d5259a53..97ab8d7f 100644 --- a/accel-pppd/cli/std_cmd.c +++ b/accel-pppd/cli/std_cmd.c @@ -128,6 +128,8 @@ static int terminate_exec1(char * const *f, int f_cnt, void *cli) pthread_rwlock_rdlock(&ppp_lock); list_for_each_entry(ppp, &ppp_list, entry) { + if (!ppp->username) + continue; if (pcre_exec(re, NULL, ppp->username, strlen(ppp->username), 0, 0, NULL, 0) < 0) continue; if (hard) |