Message ID | 20161219233800.GB4610@salvia |
---|---|
State | RFC |
Delegated to: | Pablo Neira |
Headers | show |
diff --git a/libxtables/xtables.c b/libxtables/xtables.c index bed43480d589..d43f97066ea9 100644 --- a/libxtables/xtables.c +++ b/libxtables/xtables.c @@ -1211,8 +1211,10 @@ const char *xtables_ipaddr_to_numeric(const struct in_addr *addrp) static const char *ipaddr_to_host(const struct in_addr *addr) { static char hostname[NI_MAXHOST]; - struct sockaddr_in saddr = { .sin_family = AF_INET, }; - saddr.sin_addr = *addr; + struct sockaddr_in saddr = { + .sin_family = AF_INET, + .sin_addr = *addr, + }; int err;