diff options
author | Daiki Ueno <dueno@redhat.com> | 2018-02-26 14:53:12 +0100 |
---|---|---|
committer | Daiki Ueno <ueno@gnu.org> | 2018-02-27 12:27:45 +0100 |
commit | adc760e5ce90d49f7c6183c689f95868341f6fb7 (patch) | |
tree | 64efa68b00eb6d7af20a11774e557244aa728059 /p11-kit | |
parent | 47297f9785a21af1bb79450bad549aa8bd33a24c (diff) |
test-transport: Make sure to initialize addrlen given to accept
Diffstat (limited to 'p11-kit')
-rw-r--r-- | p11-kit/test-transport.c | 1 |
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); |