Skip to content

Commit

Permalink
sys/net/rpl: fix possible NULL dereference
Browse files Browse the repository at this point in the history
fixes #15006
  • Loading branch information
maribu committed May 17, 2023
1 parent 19ce68d commit 273f92a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sys/net/gnrc/routing/rpl/gnrc_rpl_control_messages.c
Original file line number Diff line number Diff line change
Expand Up @@ -1231,7 +1231,7 @@ void gnrc_rpl_recv_DAO_ACK(gnrc_rpl_dao_ack_t *dao_ack, kernel_pid_t iface, ipv6
#endif

if (!IS_ACTIVE(CONFIG_GNRC_RPL_WITHOUT_VALIDATION)) {
if (!gnrc_rpl_validation_DAO_ACK(dao_ack, len, dst)) {
if (!dst || !gnrc_rpl_validation_DAO_ACK(dao_ack, len, dst)) {
return;
}
}
Expand Down

0 comments on commit 273f92a

Please sign in to comment.