]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: cleanup privs on termination
authorStephen Hemminger <shemminger@vyatta.com>
Tue, 6 Dec 2011 20:04:46 +0000 (00:04 +0400)
committerDenis Ovsienko <infrastation@yandex.ru>
Mon, 2 Jan 2012 13:15:42 +0000 (17:15 +0400)
When doing valgrind testing, the privledges from zprivs_init() need
to be cleaned up on exit.

bgpd/bgp_main.c

index 778067a81ca13ca103ebfd9457ea1857c7c46b20..f835fe771ed3f0b787b2ce464d736ecf816c0538 100644 (file)
@@ -199,6 +199,7 @@ sigint (void)
   if (! retain_mode)
     bgp_terminate ();
 
+  zprivs_terminate (&bgpd_privs);
   bgp_exit (0);
 }