Merge pull request #4532 from donaldsharp/fuzzing

zebra: Fuzzing code has gotten a bit out of date
This commit is contained in:
Mark Stapp 2019-06-17 10:11:59 -04:00 committed by GitHub
commit a1b82d0c66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

@ -23,6 +23,7 @@
#if defined(HANDLE_NETLINK_FUZZING)
#include <stdio.h>
#include <string.h>
#include "libfrr.h"
#endif /* HANDLE_NETLINK_FUZZING */
#ifdef HAVE_NETLINK

View File

@ -1067,10 +1067,8 @@ DEFUN (show_zebra_client_summary,
void zserv_read_file(char *input)
{
int fd;
struct thread t;
fd = open(input, O_RDONLY | O_NONBLOCK);
t.u.fd = fd;
zserv_client_create(fd);
}