]> git.puffer.fish Git - mirror/frr.git/commitdiff
BGP: crash in list_delete_all_node when shutting down BGP
authorDaniel Walton <dwalton@cumulusnetworks.com>
Tue, 20 Oct 2015 22:11:01 +0000 (22:11 +0000)
committerDaniel Walton <dwalton@cumulusnetworks.com>
Tue, 20 Oct 2015 22:11:01 +0000 (22:11 +0000)
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
Reviewed-by: Donald Sharp <sharpd@cumulusnetworks.com>
Ticket: CM-7904

bgpd/bgp_route.c

index 08262535197fc458d35fa921aa6df6865323ba6a..fafb29943f45213c5f58dccd61d2b2835aa86922 100644 (file)
@@ -2199,9 +2199,12 @@ bgp_process_queue_init (void)
   /* Use a higher yield value of 50ms for main queue processing */
   bm->process_main_queue->spec.yield = 50 * 1000L;
   
-  memcpy (bm->process_rsclient_queue, bm->process_main_queue,
-          sizeof (struct work_queue));
   bm->process_rsclient_queue->spec.workfunc = &bgp_process_rsclient;
+  bm->process_rsclient_queue->spec.del_item_data = &bgp_processq_del;
+  bm->process_rsclient_queue->spec.max_retries = 0;
+  bm->process_rsclient_queue->spec.hold = 50;
+  /* Use a higher yield value of 50ms for main queue processing */
+  bm->process_rsclient_queue->spec.yield = 50 * 1000L;
 }
 
 void