]> git.puffer.fish Git - matthieu/frr.git/commitdiff
disable more privilege things
authorQuentin Young <qlyoung@cumulusnetworks.com>
Mon, 13 Jan 2020 18:37:19 +0000 (13:37 -0500)
committerQuentin Young <qlyoung@nvidia.com>
Mon, 15 Nov 2021 19:52:42 +0000 (14:52 -0500)
lib/privs.c

index 6bc9ba45343cbefa36f15bba7e88c51cc5cbc94a..c8a3f17074aa0218d073333bb1289fb229a7e2c7 100644 (file)
@@ -557,6 +557,12 @@ void zprivs_preinit(struct zebra_privs_t *zprivs)
        zprivs->process_refs.raised_in_funcname = NULL;
        STAILQ_INIT(&zprivs->thread_refs);
 
+#ifdef FUZZING
+       zprivs->user = NULL;
+       zprivs->group = NULL;
+       zprivs->vty_group = NULL;
+#endif
+
        if (zprivs->vty_group) {
                /* in a "NULL" setup, this is allowed to fail too, but still
                 * try. */