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 kconfig: remove Enable from boolean prompts 2022-03-09 15:35:54 +01:00
fsm.c net: ppp: Fix NULL pointer dereference in FSM module 2022-08-10 11:06:24 +02:00
ipcp.c all: logging: Remove log_strdup function 2022-06-23 13:42:23 +02:00
ipv6cp.c all: logging: Remove log_strdup function 2022-06-23 13:42:23 +02:00
lcp.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
link.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
misc.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
network.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
options.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
pap.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
ppp_internal.h subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
ppp_l2.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
ppp_mgmt.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
ppp_stats.c subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00
ppp_stats.h subsystems: migrate includes to <zephyr/...> 2022-05-09 12:07:35 +02:00