linux-cp: fix segfault while receiving nl messages 65/42065/2
authorArtem Glazychev <glazychev@mts.ru>
Wed, 18 Dec 2024 08:50:13 +0000 (15:50 +0700)
committerMatthew Smith <mgsmith@netgate.com>
Thu, 16 Jan 2025 15:32:54 +0000 (15:32 +0000)
commit8d6b2f6d7a8cd78ae42262c4de112f8301e80e18
tree4e00a4262bf047db40b93ffc5aeb51e637e099b2
parent4e003776cb9a7f7989ae4c49baec12d74ad16fa7
linux-cp: fix segfault while receiving nl messages

- check nl socket before receiving messages
- we don't need extra callback after adding an lcp pair because we start draining messages (due to epoll) right after opening socket

Type: fix

Change-Id: I0ecb03b758f066662015fd6c6b9d3c48cb520c0d
Signed-off-by: Artem Glazychev <glazychev@mts.ru>
src/plugins/linux-cp/lcp_nl.c