Bug in l2tpns.c in in function _log: Fix included (please verify).
// fixed size of 4095 in vsnprintf is wrong, must not be greater than sizeof(message) from the struct. Otherwise you get *** buffer overflow detected *** when compiled under recent gcc. With this fix, l2tpns compiles and works again.
// replace as shown in l2tpns.c in function _log
- vsnprintf(ringbuffer->buffer[ringbuffer->tail].message, 4095, format, ap);
+ vsnprintf(ringbuffer->buffer[ringbuffer->tail].message, sizeof(ringbuffer->buffer[ringbuffer->tail].message), format, ap);