Merge pull request #34 from real-dam/init-intf_addr

avoid possible use of uninitialized intf_addr in nmrp_do()
This commit is contained in:
Joseph C. Lehner 2020-05-11 16:18:13 +02:00 committed by GitHub
commit 44a2d08210
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

2
nmrp.c
View file

@ -360,7 +360,7 @@ int nmrp_do(struct nmrpd_args *args)
struct ethsock *sock;
struct ethsock_ip_undo *ip_undo = NULL;
struct ethsock_arp_undo *arp_undo = NULL;
uint32_t intf_addr;
uint32_t intf_addr = 0;
void (*sigh_orig)(int);
struct in_addr ipaddr;
struct in_addr ipmask;