Merge branch 'fix-freeze-infinite-loop' into 'master'
Fix infinite loop error 'Unknown AVP vendor' See merge request l2tpns/l2tpns!8
This commit is contained in:
commit
dd5d24fac2
1 changed files with 1 additions and 1 deletions
2
l2tpns.c
2
l2tpns.c
|
|
@ -2701,7 +2701,7 @@ void processudp(uint8_t *buf, int len, struct sockaddr_in *addr, uint16_t indexu
|
|||
uint8_t flags = *p;
|
||||
uint16_t mtype;
|
||||
|
||||
if (n > l)
|
||||
if ((n > l) || (n < 6))
|
||||
{
|
||||
LOG(1, s, t, "Invalid length in AVP\n");
|
||||
STAT(tunnel_rx_errors);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue