]> git.proxmox.com Git - mirror_frr.git/commit
libs: fix race in privs changes
authorMark Stapp <mjs@voltanet.io>
Sun, 17 Mar 2019 17:25:16 +0000 (13:25 -0400)
committerMark Stapp <mjs@voltanet.io>
Sun, 17 Mar 2019 17:25:16 +0000 (13:25 -0400)
commit064e2f32807a549e777d829cd35e3bd941e95c06
tree274df399213d0ae1f908b23d136d2a9790c67ee0
parent86dd09667aad80fbd7f3e8d878f1733ebeda4f20
libs: fix race in privs changes

Use the privs struct mutex more strictly, to ensure that the
privs are at the level the caller expects when the apis
return.

Signed-off-by: Mark Stapp <mjs@voltanet.io>
lib/privs.c