fastd: fix segfault on startup

This commit is contained in:
Enno Boland 2015-12-19 14:43:35 +01:00
parent 3bf7072c63
commit afc604745f
2 changed files with 12 additions and 1 deletions

View 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;
}

View file

@ -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"