summaryrefslogtreecommitdiff
path: root/accel-pppd/cli/std_cmd.c
diff options
context:
space:
mode:
authorKozlov Dmitry <dima@server>2012-11-15 14:21:35 +0400
committerKozlov Dmitry <xeb@mail.ru>2013-01-24 23:51:33 +0400
commit45026d43f6cfbe0f6efa446b47629cb948db5a9d (patch)
treebe206f8519ba8169f7ca8e87f0cfc66b63ef9a74 /accel-pppd/cli/std_cmd.c
parent227298572c50013225752ff3af13ffc724d26ddf (diff)
downloadaccel-ppp-45026d43f6cfbe0f6efa446b47629cb948db5a9d.tar.gz
accel-ppp-45026d43f6cfbe0f6efa446b47629cb948db5a9d.zip
merge upstream
Diffstat (limited to 'accel-pppd/cli/std_cmd.c')
-rw-r--r--accel-pppd/cli/std_cmd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/accel-pppd/cli/std_cmd.c b/accel-pppd/cli/std_cmd.c
index d2666d87..7a890d1a 100644
--- a/accel-pppd/cli/std_cmd.c
+++ b/accel-pppd/cli/std_cmd.c
@@ -130,6 +130,8 @@ static int terminate_exec1(char * const *f, int f_cnt, void *cli)
pthread_rwlock_rdlock(&ses_lock);
list_for_each_entry(ses, &ses_list, entry) {
+ if (!ses->username)
+ continue;
if (pcre_exec(re, NULL, ses->username, strlen(ses->username), 0, 0, NULL, 0) < 0)
continue;
if (hard)