Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 260481 | Differences between
and this patch

Collapse All | Expand All

(-)a/ipset.c (-1 / +2 lines)
Lines 626-632 void parse_ip(const char *str, ip_set_ip_t * ip) Link Here
626
				   "host/network `%s' resolves to serveral ip-addresses. "
626
				   "host/network `%s' resolves to serveral ip-addresses. "
627
				   "Please specify one.", str);
627
				   "Please specify one.", str);
628
628
629
		*ip = ntohl(((struct in_addr *) host->h_addr_list[0])->s_addr);
629
		memcpy(&addr, host->h_addr_list[0], sizeof(struct in_addr));
630
		*ip = ntohl(addr.s_addr);
630
		return;
631
		return;
631
	}
632
	}
632
633

Return to bug 260481