Diff between cead47b5d78146aba2d11eb38bed98ae6d78abce and a9a54b5e41126f2edf6a313c63b4d8fff6298e8f
Changed Files
| File | Additions | Deletions | Status |
| src/shared/crypto.c | +2 | -1 | modified |
Full Patch
diff --git a/src/shared/crypto.c b/src/shared/crypto.c
index 0cb132e..704543a 100644
--- a/src/shared/crypto.c
+++ b/src/shared/crypto.c
@@ -173,7 +173,8 @@ static int alg_new(int fd, const void *keyval, socklen_t keylen)
if (setsockopt(fd, SOL_ALG, ALG_SET_KEY, keyval, keylen) < 0)
return -1;
- return accept4(fd, NULL, 0, SOCK_CLOEXEC);
+ /* FIXME: This should use accept4() with SOCK_CLOEXEC */
+ return accept(fd, NULL, 0);
}
static bool alg_encrypt(int fd, const void *inbuf, size_t inlen,