From b1278a38bcb108fad3230ecce94a53b64571f9de Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Tue, 24 Nov 2009 16:03:47 +0100 Subject: ntpd: locally bind every peer socket. +22 bytes Signed-off-by: Denys Vlasenko --- libbb/xconnect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libbb') diff --git a/libbb/xconnect.c b/libbb/xconnect.c index b6848ea6f..8a1e1c1b2 100644 --- a/libbb/xconnect.c +++ b/libbb/xconnect.c @@ -346,7 +346,7 @@ int FAST_FUNC xsocket_type(len_and_sockaddr **lsap, IF_FEATURE_IPV6(int family,) len = sizeof(struct sockaddr_in6); } #endif - lsa = xzalloc(offsetof(len_and_sockaddr, u.sa) + len); + lsa = xzalloc(LSA_LEN_SIZE + len); lsa->len = len; lsa->u.sa.sa_family = family; *lsap = lsa; -- cgit v1.2.3