summaryrefslogtreecommitdiff
path: root/accel-pppd/radius/radius.c
diff options
context:
space:
mode:
Diffstat (limited to 'accel-pppd/radius/radius.c')
-rw-r--r--accel-pppd/radius/radius.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/accel-pppd/radius/radius.c b/accel-pppd/radius/radius.c
index bae5876..2092625 100644
--- a/accel-pppd/radius/radius.c
+++ b/accel-pppd/radius/radius.c
@@ -88,7 +88,7 @@ int rad_proc_attrs(struct rad_req_t *req)
switch(attr->attr->id) {
case Framed_IP_Address:
- if (!conf_gw_ip_address)
+ if (!conf_gw_ip_address && req->rpd->ses->ctrl->ppp)
log_ppp_warn("radius: gw-ip-address not specified, cann't assign IP address...\n");
else {
req->rpd->ipv4_addr.peer_addr = attr->val.ipaddr;