bgpd: cleanup privs on termination

When doing valgrind testing, the privledges from zprivs_init() need
to be cleaned up on exit.
This commit is contained in:
Stephen Hemminger 2011-12-07 00:04:46 +04:00 committed by Denis Ovsienko
parent 46901400a3
commit 04d5e24d74

View File

@ -197,6 +197,7 @@ sigint (void)
if (! retain_mode) if (! retain_mode)
bgp_terminate (); bgp_terminate ();
zprivs_terminate (&bgpd_privs);
bgp_exit (0); bgp_exit (0);
} }