aboutsummaryrefslogtreecommitdiff
path: root/libbb/xconnect.c
diff options
context:
space:
mode:
authorGravatar Denys Vlasenko <vda.linux@googlemail.com>2009-11-24 16:03:47 +0100
committerGravatar Denys Vlasenko <vda.linux@googlemail.com>2009-11-24 16:03:47 +0100
commitb1278a38bcb108fad3230ecce94a53b64571f9de (patch)
tree27ccecf5dd5a76cff75e809d5518fb1589479d85 /libbb/xconnect.c
parent9cc60d7e6b21e659a07042e46b9cd88f498fc8c0 (diff)
downloadbusybox-b1278a38bcb108fad3230ecce94a53b64571f9de.tar.gz
busybox-b1278a38bcb108fad3230ecce94a53b64571f9de.tar.bz2
ntpd: locally bind every peer socket. +22 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb/xconnect.c')
-rw-r--r--libbb/xconnect.c2
1 files changed, 1 insertions, 1 deletions
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;