+2004-03-18 sowmini.varadhan@sun.com
+
+ * ripd.c: rip_send_packet can get null connected address when
+ called in response to a unicast rip-request. Handle correctly.
+
2004-03-03 Krzysztof Oledzki <oleq@ans.pl>
* ripd.c: fix "show ip rip" and per interface rip version selection.
strcpy(dst, inet_ntoa(sin.sin_addr));
}
zlog_info("rip_send_packet %s > %s (%s)",
- inet_ntoa(connected->address->u.prefix4), dst, ifp->name);
+ (connected ? inet_ntoa(connected->address->u.prefix4) : ""),
+ dst, ifp->name);
}
- if (connected->flags & ZEBRA_IFA_SECONDARY)
+ if (connected && connected->flags & ZEBRA_IFA_SECONDARY)
{
/*
* ZEBRA_IFA_SECONDARY is set on linux when an interface is configured