diff --git a/srcpkgs/fastd/patches/fix-segfault.patch b/srcpkgs/fastd/patches/fix-segfault.patch new file mode 100644 index 00000000000..ebc1998636e --- /dev/null +++ b/srcpkgs/fastd/patches/fix-segfault.patch @@ -0,0 +1,11 @@ +--- src/crypto/mac/macs.c.in.orig 2015-01-29 06:41:45.000000000 +0100 ++++ src/crypto/mac/macs.c.in 2015-12-19 14:41:42.579958439 +0100 +@@ -67,7 +67,7 @@ static inline bool mac_available(const f + void fastd_mac_init(void) { + size_t i, j; + for (i = 0; i < array_size(macs); i++) { +- for (j = 0; macs[i].impls[j].impl; j++) { ++ for (j = 0; macs[i].impls[j].impl == NULL; j++) { + if (mac_available(macs[i].impls[j].impl)) + break; + } diff --git a/srcpkgs/fastd/template b/srcpkgs/fastd/template index ca6c859eacc..240a7f73c0c 100644 --- a/srcpkgs/fastd/template +++ b/srcpkgs/fastd/template @@ -1,7 +1,7 @@ # Template file for 'fastd' pkgname=fastd version=17 -revision=3 +revision=4 build_style=cmake hostmakedepends="cmake pkg-config bison" makedepends="libuecc-devel libsodium-devel json-c-devel libcap-devel"