summaryrefslogtreecommitdiff
path: root/accel-pppd/ctrl/ipoe/ipoe.c
diff options
context:
space:
mode:
Diffstat (limited to 'accel-pppd/ctrl/ipoe/ipoe.c')
-rw-r--r--accel-pppd/ctrl/ipoe/ipoe.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/accel-pppd/ctrl/ipoe/ipoe.c b/accel-pppd/ctrl/ipoe/ipoe.c
index 3e3a3e8d..e9edd9be 100644
--- a/accel-pppd/ctrl/ipoe/ipoe.c
+++ b/accel-pppd/ctrl/ipoe/ipoe.c
@@ -534,14 +534,14 @@ static void __ipoe_session_start(struct ipoe_session *ses)
ses->siaddr = ses->router;
if (!ses->siaddr)
+ find_gw_addr(ses);
+
+ if (!ses->siaddr)
ses->siaddr = ses->serv->opt_src;
if (!ses->siaddr && ses->serv->dhcpv4_relay)
ses->siaddr = ses->serv->dhcpv4_relay->giaddr;
- if (!ses->siaddr)
- find_gw_addr(ses);
-
if (!ses->siaddr) {
log_ppp_error("can't determine Server-ID\n");
ap_session_terminate(&ses->ses, TERM_NAS_ERROR, 0);