diff options
Diffstat (limited to 'accel-pptpd/radius/radius.c')
-rw-r--r-- | accel-pptpd/radius/radius.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/accel-pptpd/radius/radius.c b/accel-pptpd/radius/radius.c index eff1e349..11b2717d 100644 --- a/accel-pptpd/radius/radius.c +++ b/accel-pptpd/radius/radius.c @@ -254,6 +254,8 @@ struct radius_pd_t *rad_find_session(const char *sessionid, const char *username pthread_rwlock_rdlock(&sessions_lock); list_for_each_entry(rpd, &sessions, entry) { + if (!rpd->ppp->username) + continue; if (sessionid && strcmp(sessionid, rpd->ppp->sessionid)) continue; if (username && strcmp(username, rpd->ppp->username)) |