1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-27 23:41:18 +01:00

fix prevent possible access above array boardes

This commit is contained in:
Martin 2013-09-23 12:41:39 +02:00
parent 04aa86f8ec
commit dea48c84c1

View File

@ -131,7 +131,7 @@ uint8_t ipv6_register_packet_handler(int pid)
{
uint8_t i;
for (i = 0; ((sixlowip_reg[i] != pid) && (i < SIXLOWIP_MAX_REGISTERED) &&
for (i = 0; ((i < SIXLOWIP_MAX_REGISTERED) && (sixlowip_reg[i] != pid) &&
(sixlowip_reg[i] != 0)); i++) {
;
}