summaryrefslogtreecommitdiff
path: root/p11-kit
diff options
context:
space:
mode:
authorDaiki Ueno <dueno@redhat.com>2018-02-26 14:53:12 +0100
committerDaiki Ueno <ueno@gnu.org>2018-02-27 12:27:45 +0100
commitadc760e5ce90d49f7c6183c689f95868341f6fb7 (patch)
tree64efa68b00eb6d7af20a11774e557244aa728059 /p11-kit
parent47297f9785a21af1bb79450bad549aa8bd33a24c (diff)
test-transport: Make sure to initialize addrlen given to accept
Diffstat (limited to 'p11-kit')
-rw-r--r--p11-kit/test-transport.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/p11-kit/test-transport.c b/p11-kit/test-transport.c
index 1a9f603..c128e54 100644
--- a/p11-kit/test-transport.c
+++ b/p11-kit/test-transport.c
@@ -180,6 +180,7 @@ launch_server (void)
assert (FD_ISSET (fd, &fds));
+ sa_len = sizeof (sa);
nfd = accept (fd, (struct sockaddr *)&sa, &sa_len);
assert_num_cmp (rc, !=, -1);
close (fd);