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
arpresolve(struct ifnet *ifp, struct rtentry *rt0, struct mbuf *m,
struct sockaddr *dst, u_char *desten)
{
- struct rtentry *rt;
+ struct rtentry *rt = NULL;
struct llinfo_arp *la = NULL;
struct sockaddr_dl *sdl;