* bgpd.c: (bgp_terminate) workqueue's are lazy allocated and its
possible to terminate bgpd before workqueues were setup, causing
an abort/crash. Reported by Ashish Mehta of Sun.
+2005-06-15 Paul Jakma <paul.jakma@sun.com>
+
+ * bgpd.c: (bgp_terminate) workqueue's are lazy allocated and its
+ possible to terminate bgpd before workqueues were setup, causing
+ an abort/crash. Reported by Ashish Mehta of Sun.
+
2005-06-01 Paul Jakma <paul.jakma@sun.com>
* (general) refcount struct peer and bgp_info, hence allowing us
BGP_NOTIFY_CEASE_PEER_UNCONFIG);
bgp_cleanup_routes ();
- work_queue_free (bm->process_main_queue);
- work_queue_free (bm->process_rsclient_queue);
+ if (bm->process_main_queue)
+ work_queue_free (bm->process_main_queue);
+ if (bm->process_rsclient_queue)
+ work_queue_free (bm->process_rsclient_queue);
}