2005-11-23 Paul Jakma <paul.jakma@sun.com>
* bgp_aspath.c: (assegments_parse) should be static
2005-11-23 Juergen Kammer <j.kammer@eurodata.de>
* bgp_aspath.c: (aspath_cmp_left_confed) fix SEGV for case
where one or both paths are empty.
+2005-11-23 Paul Jakma <paul.jakma@sun.com>
+
+ * bgp_aspath.c: (assegments_parse) should be static
+
+2005-11-23 Juergen Kammer <j.kammer@eurodata.de>
+
+ * bgp_aspath.c: (aspath_cmp_left_confed) fix SEGV for case
+ where one or both paths are empty.
+
2005-11-14 Paul Jakma <paul.jakma@sun.com>
* bgp_route.c: (bgp_process_rsclient) convert to new workqueue
}
/* parse as-segment byte stream in struct assegment */
-struct assegment *
+static struct assegment *
assegments_parse (struct stream *s, size_t length)
{
struct assegment_header segh;
if (! (aspath1 && aspath2) )
return 0;
+ if ( !(aspath1->segments && aspath2->segments) )
+ return 0;
+
if ( (aspath1->segments->type != AS_CONFED_SEQUENCE)
|| (aspath2->segments->type != AS_CONFED_SEQUENCE) )
return 0;