diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2011-12-07 00:04:46 +0400 |
---|---|---|
committer | Denis Ovsienko <infrastation@yandex.ru> | 2012-01-02 17:15:42 +0400 |
commit | 8502229b7ed198d994017e4fd04000d429ca9c8d (patch) | |
tree | 895acf581aa6e900eacc45adaa24bbddfef3640d | |
parent | a80e20d17597253e74e22aed6b1a85417f667b49 (diff) |
bgpd: cleanup privs on termination
When doing valgrind testing, the privledges from zprivs_init() need
to be cleaned up on exit.
-rw-r--r-- | bgpd/bgp_main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bgpd/bgp_main.c b/bgpd/bgp_main.c index 778067a8..f835fe77 100644 --- a/bgpd/bgp_main.c +++ b/bgpd/bgp_main.c @@ -199,6 +199,7 @@ sigint (void) if (! retain_mode) bgp_terminate (); + zprivs_terminate (&bgpd_privs); bgp_exit (0); } |