diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-11-24 16:03:47 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-11-24 16:03:47 +0100 |
commit | b1278a38bcb108fad3230ecce94a53b64571f9de (patch) | |
tree | 27ccecf5dd5a76cff75e809d5518fb1589479d85 /libbb | |
parent | 9cc60d7e6b21e659a07042e46b9cd88f498fc8c0 (diff) | |
download | busybox-b1278a38bcb108fad3230ecce94a53b64571f9de.tar.gz |
ntpd: locally bind every peer socket. +22 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/xconnect.c | 2 |
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; |