summaryrefslogtreecommitdiff
path: root/lib/libfrr.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-06-21 11:22:51 -0400
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-06-21 11:22:51 -0400
commit8e04538cae48d44ab6c917d4428303de44e7f0b2 (patch)
tree44bf2524c39a38c15c278f5f7315467c0843fee4 /lib/libfrr.c
parentaa7413195772bdd847fd7d5e6c9a9eb473de83ac (diff)
lib: Fix privs when using HAVE_CAPABILITIES
If your daemon does not need any special privileges and you are compiling with HAVE_CAPABILIES, the zprivs->change pointer will end up NULL due to the way zprivs_caps_init. So as a check let's add a NULL check for zprivs->change and set it to a function that will do nothing. This change prevents a crash if you raise privileges when your daemon needs no special privileges. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib/libfrr.c')
0 files changed, 0 insertions, 0 deletions