mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-02 19:02:57 +02:00
fastd: fix segfault on startup
This commit is contained in:
parent
3bf7072c63
commit
afc604745f
2 changed files with 12 additions and 1 deletions
11
srcpkgs/fastd/patches/fix-segfault.patch
Normal file
11
srcpkgs/fastd/patches/fix-segfault.patch
Normal file
|
@ -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;
|
||||||
|
}
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'fastd'
|
# Template file for 'fastd'
|
||||||
pkgname=fastd
|
pkgname=fastd
|
||||||
version=17
|
version=17
|
||||||
revision=3
|
revision=4
|
||||||
build_style=cmake
|
build_style=cmake
|
||||||
hostmakedepends="cmake pkg-config bison"
|
hostmakedepends="cmake pkg-config bison"
|
||||||
makedepends="libuecc-devel libsodium-devel json-c-devel libcap-devel"
|
makedepends="libuecc-devel libsodium-devel json-c-devel libcap-devel"
|
||||||
|
|
Loading…
Add table
Reference in a new issue