zephyr/subsys/net/l2/ppp
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
..
CMakeLists.txt
Kconfig
fsm.c
ipcp.c
ipv6cp.c
lcp.c
link.c
misc.c
network.c
options.c
pap.c
ppp_internal.h
ppp_l2.c
ppp_mgmt.c
ppp_stats.c
ppp_stats.h