1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

sys/net/rpl: fix possible NULL dereference

fixes https://github.com/RIOT-OS/RIOT/issues/15006
This commit is contained in:
Marian Buschsieweke 2023-05-18 01:25:13 +02:00
parent 19ce68dd2e
commit 273f92a411
No known key found for this signature in database
GPG Key ID: CB8E3238CE715A94

View File

@ -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;
}
}