From 45026d43f6cfbe0f6efa446b47629cb948db5a9d Mon Sep 17 00:00:00 2001 From: Kozlov Dmitry Date: Thu, 15 Nov 2012 14:21:35 +0400 Subject: merge upstream --- accel-pppd/cli/std_cmd.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'accel-pppd/cli/std_cmd.c') diff --git a/accel-pppd/cli/std_cmd.c b/accel-pppd/cli/std_cmd.c index d2666d8..7a890d1 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) -- cgit v1.2.3