Store proxy auth information also when forwarding session
This commit is contained in:
parent
54d36d7512
commit
3015533293
1 changed files with 5 additions and 0 deletions
5
l2tpns.c
5
l2tpns.c
|
|
@ -5074,6 +5074,11 @@ void processudp(uint8_t *buf, int len, struct sockaddr_in *addr, uint16_t indexu
|
||||||
LOG(3, s, t, "Reusing LCP negotiation\n");
|
LOG(3, s, t, "Reusing LCP negotiation\n");
|
||||||
// Start with proxy auth id to avoid client caching challenge responses
|
// Start with proxy auth id to avoid client caching challenge responses
|
||||||
sess_local[s].auth_id = authid;
|
sess_local[s].auth_id = authid;
|
||||||
|
memcpy(sess_local[s].auth_chall, authchall, authchalln);
|
||||||
|
memcpy(sess_local[s].auth_resp, authresp, authrespn);
|
||||||
|
if (atype != 0) {
|
||||||
|
sess_local[s].auth_type = atype;
|
||||||
|
}
|
||||||
|
|
||||||
if (!sess_local[s].lcp_authtype)
|
if (!sess_local[s].lcp_authtype)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue