Skip to content

Commit

Permalink
Merge pull request #198 from dinoex/develop
Browse files Browse the repository at this point in the history
- fix regression introduced in fping 4.3
  • Loading branch information
schweikert authored Oct 17, 2020
2 parents ce9d6b3 + 31f76f6 commit 49673f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fping.c
Original file line number Diff line number Diff line change
Expand Up @@ -1060,11 +1060,11 @@ int main(int argc, char** argv)
exit(num_noaddress ? 2 : 1);
}

if (socket4 >= 0) {
if (src_addr_set && socket4 >= 0) {
socket_set_src_addr_ipv4(socket4, &src_addr, (socktype4 == SOCK_DGRAM) ? &ident4 : NULL);
}
#ifdef IPV6
if (socket6 >= 0) {
if (src_addr6_set && socket6 >= 0) {
socket_set_src_addr_ipv6(socket6, &src_addr6, (socktype6 == SOCK_DGRAM) ? &ident6 : NULL);
}
#endif
Expand Down

0 comments on commit 49673f7

Please sign in to comment.