fastd: fix segmentation fault with musl >1.1.20
authorDavid Bauer <redacted>
Thu, 25 Jul 2019 16:58:03 +0000 (18:58 +0200)
committerDavid Bauer <redacted>
Thu, 25 Jul 2019 18:21:33 +0000 (20:21 +0200)
commited3c3e3c7975f9688fe76784a34be6ad189538ed
tree790d09a9917589383aed5c0f3f4d7da7d5782cd8
parentad6ed836a59d986b2a449ec958d0581b1959a338
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 <redacted>
net/fastd/Makefile
net/fastd/patches/0001-resolve-fix-segmentation-fault-with-musl-1.1.20.patch [new file with mode: 0644]
git clone https://git.99rst.org/PROJECT