Ifdef out a redundant if statement when INET6 is disabled.

MFC after:	1 week
This commit is contained in:
cy 2017-05-05 14:34:09 +00:00
parent f92c20b3c4
commit 52a71a0488

View File

@ -1047,7 +1047,9 @@ setnodeaddr(int type, int role, void *ptr, char *arg)
if (type == IPLT_POOL) {
ip_pool_node_t *node = ptr;
#ifdef USE_INET6
if (node->ipn_addr.adf_family == AF_INET)
#endif
node->ipn_addr.adf_len = offsetof(addrfamily_t,
adf_addr) +
sizeof(struct in_addr);