Commit graph

3 commits

Author SHA1 Message Date
David Bauer
c28978b925 fastd: fix segmentation fault with musl >1.1.20
When compiled with musl >1.1.20, fastd will crash in case it can't
resolve a peers hostname. This is due to a changed implementation of
freeaddrinfo in musl 1.1.21 onwards.

This segfault is fixed by not calling freeaddrinfo in case the supplied
pointer is null.

Signed-off-by: David Bauer <mail@david-bauer.net>
2019-07-25 20:21:54 +02:00
Matthias Schiffer
68cf2944b0 fastd: update to v18
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2016-03-29 00:29:43 +02:00
Matthias Schiffer
c38ba76698 fastd: fix musl compatibility
Prefer linux/if_ether.h over netinet/if_ether.h if available since the
musl libc if_ether.h header does not allow mixing with kernel headers,
it will result in a struct ethhdr redefinition error.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
2015-06-19 04:16:09 +02:00