]> git.puffer.fish Git - mirror/frr.git/commitdiff
Style for Add code for fuzzing netlink
authorStephen Worley <sworley@cumulusnetworks.com>
Mon, 23 Jul 2018 15:25:31 +0000 (11:25 -0400)
committerStephen Worley <sworley@cumulusnetworks.com>
Mon, 23 Jul 2018 15:25:31 +0000 (11:25 -0400)
Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
zebra/kernel_netlink.c

index 4aed99506031d56131188013bffc4575cdbef8d5..8844e669766ee808b394b6e645afa37859815799 100644 (file)
@@ -308,7 +308,7 @@ static unsigned int netlink_file_counter = 1;
 static char netlink_fuzz_file[MAXPATHLEN] = "";
 
 /* Flag for whether to read from file or not */
-static int netlink_read = 0;
+int netlink_read;
 
 /**
  * netlink_set_read() - Sets the read flag
@@ -374,6 +374,7 @@ static long netlink_read_file(char *buf, const char *fname)
 {
        FILE *f;
        long file_bytes = -1;
+
        zserv_privs.change(ZPRIVS_RAISE);
        f = fopen(fname, "r");
        if (f) {