Fix unitialized warning
This commit is contained in:
parent
bc6007beb7
commit
a5798dead5
1 changed files with 5 additions and 5 deletions
10
nmrp.c
10
nmrp.c
|
@ -462,7 +462,11 @@ int nmrp_do(struct nmrpd_args *args)
|
|||
return 1;
|
||||
}
|
||||
|
||||
status = is_valid_ip(sock, &ipaddr, &ipmask);
|
||||
gsock = sock;
|
||||
garp = 0;
|
||||
sigh_orig = signal(SIGINT, sigh);
|
||||
|
||||
status = is_valid_ip(sock, &ipconf.addr, &ipconf.mask);
|
||||
if (status <= 0) {
|
||||
if (!status) {
|
||||
fprintf(stderr, "Address %s/%s cannot be used on interface %s.\n",
|
||||
|
@ -471,10 +475,6 @@ int nmrp_do(struct nmrpd_args *args)
|
|||
goto out;
|
||||
}
|
||||
|
||||
gsock = sock;
|
||||
garp = 0;
|
||||
sigh_orig = signal(SIGINT, sigh);
|
||||
|
||||
if (ethsock_set_timeout(sock, args->rx_timeout)) {
|
||||
goto out;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue