kernel/arpresolve: Initialize 'rt' with NULL.
authorSascha Wildner <saw@online.de>
Sun, 3 Mar 2013 12:19:41 +0000 (13:19 +0100)
committerSascha Wildner <saw@online.de>
Sun, 3 Mar 2013 12:19:41 +0000 (13:19 +0100)
commit18c4274928f2ad615380ae6e5c7c9525dc1fc0fc
tree544642c8d6040ad5cfa6db00611d606101161921
parent270bb6909dad0b1de3b94187749eaf9cece7fde3
kernel/arpresolve: Initialize 'rt' with NULL.

This fixes a case where NULL was passed for 'rt0' and 'rt' could end up
uninitialized at the log() call in line 509.

Review by sephe showed that we never pass NULL as 'rt0' but let's fix it
anyway, to be safer.

Reported-by: enroljas
Reviewed-by: sephe
sys/netinet/if_ether.c