summaryrefslogtreecommitdiff
path: root/tools/alg-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/alg-test.c')
-rw-r--r--tools/alg-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/alg-test.c b/tools/alg-test.c
index 7ab740e1..48f0a56f 100644
--- a/tools/alg-test.c
+++ b/tools/alg-test.c
@@ -85,7 +85,7 @@ static int create_socket(void)
};
int sk, nsk;
- sk = socket(PF_ALG, SOCK_SEQPACKET, 0);
+ sk = socket(PF_ALG, SOCK_SEQPACKET | SOCK_CLOEXEC, 0);
if (sk < 0) {
perror("Failed to create socket");
return -1;