]> git.ipfire.org Git - thirdparty/lldpd.git/commit
Read all notifications in lldpctl_recv. 286/head
authorGustav Wiklander <gustavwi@axis.com>
Wed, 13 Jun 2018 09:35:15 +0000 (11:35 +0200)
committerGustav Wiklander <gustavwi@axis.com>
Wed, 13 Jun 2018 09:35:15 +0000 (11:35 +0200)
commitdb3731d0a6df6939a29c9bf80522a25d4edb8f11
tree1d798446e97f6f7e660beba8d591f045779a6969
parent09a267fcda7adf5b0667627d5a7500cbfbec08ac
Read all notifications in lldpctl_recv.

Can otherwise lead to unbounded growth in input_buffer if
lldp devices send notifications simultaneously thus
a socket callback contains multiple notifications
and only the first one is cleared. This leads to continous
growth of the input buffer and will crash the system.

Change-Id: I3331de2d8201f574a91b8e8f2d51a98010f7a7ab
src/lib/connection.c