diff options
Diffstat (limited to 'packet.c')
-rw-r--r-- | packet.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -432,8 +432,6 @@ packet_connection_af(void) | |||
432 | if (getsockname(active_state->connection_out, (struct sockaddr *)&to, | 432 | if (getsockname(active_state->connection_out, (struct sockaddr *)&to, |
433 | &tolen) < 0) | 433 | &tolen) < 0) |
434 | return 0; | 434 | return 0; |
435 | if (to.ss_family == AF_INET) | ||
436 | return 1; | ||
437 | #ifdef IPV4_IN_IPV6 | 435 | #ifdef IPV4_IN_IPV6 |
438 | if (to.ss_family == AF_INET6 && | 436 | if (to.ss_family == AF_INET6 && |
439 | IN6_IS_ADDR_V4MAPPED(&((struct sockaddr_in6 *)&to)->sin6_addr)) | 437 | IN6_IS_ADDR_V4MAPPED(&((struct sockaddr_in6 *)&to)->sin6_addr)) |