zephyr/subsys/net/l2
Robert Lubos 2670fc9b67 net: ppp: Fix NULL pointer dereference in FSM module
ppp_send_pkt() function can be called with NULL fsm parameter (when
PPP_PROTOCOL_REJ packet was sent), howerver this was not taken into
consideration when ppp_context was retrieved. In result, this could lead
to NULL pointer dereference an crash.

Fix this, by moving the ppp_context extraction directly where it's
actually used (PPP_CODE_REJ packet type handling). In such case, fsm
point should not be NULL.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
2022-08-10 11:06:24 +02:00
..
bluetooth all: logging: Remove log_strdup function 2022-06-23 13:42:23 +02:00
canbus drivers: net: canbus: move CAN bus network driver to drivers/net 2022-07-13 10:34:51 +02:00
dummy subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
ethernet net: ethernet: Add EAPoL ether type support 2022-08-08 14:03:54 +02:00
ieee802154 net: l2: ieee802154: apply clang format 2022-08-04 13:44:06 +02:00
openthread net: openthread: fix mbedtls config when SRP is enabled 2022-07-14 10:31:56 +02:00
ppp net: ppp: Fix NULL pointer dereference in FSM module 2022-08-10 11:06:24 +02:00
virtual net: ipip: Remove unused variable 2022-06-27 08:51:18 -05:00
wifi subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
CMakeLists.txt net: remove unmaintained 6LoCAN implementation 2022-03-09 18:07:31 +01:00
Kconfig net: l2: ieee802154: improve inline comments 2022-08-04 13:44:06 +02:00