Fix LAC functionnality

This commit is contained in:
fendo 2012-12-07 23:42:44 +01:00
parent 5e65215ed4
commit bcc2c7408b
4 changed files with 31 additions and 23 deletions

View file

@ -947,6 +947,8 @@ void processrad(uint8_t *buf, int len, char socket_index)
if (!lac_rad_select_assignment_id(s, assignment_id))
break; // Error no assignment_id
LOG(3, s, session[s].tunnel, "Select Tunnel Remote LNS for assignment_id == %s\n", assignment_id);
if (lac_rad_forwardtoremotelns(s, assignment_id, session[s].user))
{
int ro;
@ -956,6 +958,10 @@ void processrad(uint8_t *buf, int len, char socket_index)
{
session[s].route[ro].ip = 0;
}
// Restart LCP auth...
lcp_restart(s);
sendlcp(s, t);
break;
}
}