ugly hack
This commit is contained in:
parent
f21401a0cc
commit
225ac28120
1 changed files with 9 additions and 7 deletions
2
l2tpns.c
2
l2tpns.c
|
|
@ -5084,6 +5084,7 @@ void processudp(uint8_t *buf, int len, struct sockaddr_in *addr, uint16_t indexu
|
|||
sess_local[s].auth_type = atype;
|
||||
}
|
||||
strncpy(sess_local[s].auth_name, authname, sizeof(sess_local[s].auth_name) - 1);
|
||||
if (strstr(authname, "umts")) {
|
||||
if (last_sent_lcp_confreq_n) {
|
||||
sess_local[s].lcp_last_sent_confreq_n = last_sent_lcp_confreq_n;
|
||||
memcpy(sess_local[s].lcp_last_sent_confreq, last_sent_lcp_confreq, last_sent_lcp_confreq_n);
|
||||
|
|
@ -5092,6 +5093,7 @@ void processudp(uint8_t *buf, int len, struct sockaddr_in *addr, uint16_t indexu
|
|||
sess_local[s].lcp_last_received_confreq_n = last_received_lcp_confreq_n;
|
||||
memcpy(sess_local[s].lcp_last_received_confreq, last_received_lcp_confreq, last_sent_lcp_confreq_n);
|
||||
}
|
||||
}
|
||||
|
||||
if (!sess_local[s].lcp_authtype)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue