summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--accel-pptpd/radius/radius.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pptpd/radius/radius.c b/accel-pptpd/radius/radius.c
index 817071e9..8a4020c1 100644
--- a/accel-pptpd/radius/radius.c
+++ b/accel-pptpd/radius/radius.c
@@ -245,7 +245,7 @@ struct radius_pd_t *rad_find_session_pack(struct rad_packet_t *pack)
if (!sessionid && !username && port_id == -1 && ipaddr == 0 && !csid)
return NULL;
- if (username && !sessionid)
+ if (username && !sessionid && port_id == -1 && ipaddr == 0)
return NULL;
return rad_find_session(sessionid, username, port_id, ipaddr, csid);