commit | 8502229b7ed198d994017e4fd04000d429ca9c8d | [log] [tgz] |
---|---|---|
author | Stephen Hemminger <shemminger@vyatta.com> | Wed Dec 07 00:04:46 2011 +0400 |
committer | Denis Ovsienko <infrastation@yandex.ru> | Mon Jan 02 17:15:42 2012 +0400 |
tree | 895acf581aa6e900eacc45adaa24bbddfef3640d | |
parent | a80e20d17597253e74e22aed6b1a85417f667b49 [diff] [blame] |
bgpd: cleanup privs on termination When doing valgrind testing, the privledges from zprivs_init() need to be cleaned up on exit.
diff --git a/bgpd/bgp_main.c b/bgpd/bgp_main.c index 778067a..f835fe7 100644 --- a/bgpd/bgp_main.c +++ b/bgpd/bgp_main.c
@@ -199,6 +199,7 @@ if (! retain_mode) bgp_terminate (); + zprivs_terminate (&bgpd_privs); bgp_exit (0); }