diff options
Diffstat (limited to 'net-dialup/l2tpd/files/l2tpd-0.69-can-2004-0649.patch')
-rw-r--r-- | net-dialup/l2tpd/files/l2tpd-0.69-can-2004-0649.patch | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/net-dialup/l2tpd/files/l2tpd-0.69-can-2004-0649.patch b/net-dialup/l2tpd/files/l2tpd-0.69-can-2004-0649.patch deleted file mode 100644 index 90d3150dc4f5..000000000000 --- a/net-dialup/l2tpd/files/l2tpd-0.69-can-2004-0649.patch +++ /dev/null @@ -1,18 +0,0 @@ ---- l2tpd-0.69.orig/control.c -+++ l2tpd-0.69/control.c -@@ -1575,6 +1575,15 @@ - wbuf[pos++] = e; - for (x = 0; x < buf->len; x++) - { -+ // we must at least still have 3 bytes left in the worst case scenario: -+ // 1 for a possible escape, 1 for the value and 1 to end the PPP stream. -+ if(pos >= (sizeof(wbuf) - 4)) { -+ if(DEBUG) -+ log(LOG_CRIT, "%s: rx packet is too big after PPP encoding (size %u, max is %u)\n", -+ __FUNCTION__, buf->len, MAX_RECV_SIZE); -+ return -EINVAL; -+ } -+ - e = *((char *) buf->start + x); - if ((e < 0x20) || (e == PPP_ESCAPE) || (e == PPP_FLAG)) - { |