mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-06-14 13:22:02 +00:00
zebra: Fuzzing code has gotten a bit out of date
Update the fuzzing code to compile again. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
ce746edebb
commit
96b43ab3ff
@ -23,6 +23,7 @@
|
|||||||
#if defined(HANDLE_NETLINK_FUZZING)
|
#if defined(HANDLE_NETLINK_FUZZING)
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include "libfrr.h"
|
||||||
#endif /* HANDLE_NETLINK_FUZZING */
|
#endif /* HANDLE_NETLINK_FUZZING */
|
||||||
|
|
||||||
#ifdef HAVE_NETLINK
|
#ifdef HAVE_NETLINK
|
||||||
|
@ -1067,10 +1067,8 @@ DEFUN (show_zebra_client_summary,
|
|||||||
void zserv_read_file(char *input)
|
void zserv_read_file(char *input)
|
||||||
{
|
{
|
||||||
int fd;
|
int fd;
|
||||||
struct thread t;
|
|
||||||
|
|
||||||
fd = open(input, O_RDONLY | O_NONBLOCK);
|
fd = open(input, O_RDONLY | O_NONBLOCK);
|
||||||
t.u.fd = fd;
|
|
||||||
|
|
||||||
zserv_client_create(fd);
|
zserv_client_create(fd);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user