mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-04 16:57:43 +00:00
Style for Add code for fuzzing netlink
Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
This commit is contained in:
parent
81a2f870dd
commit
bd7891fd70
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user