diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-11-11 18:03:22 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-11-11 18:03:22 +0100 |
commit | 3e29b8895a910314aaea4a251fc959cde427c241 (patch) | |
tree | a7dc0f4d8c3ee6f0ed3c4e78d21e66f560145802 /src/libsystemd-network/test-ndisc-rs.c | |
parent | fuzz: explicitly set initial value of global variables (diff) | |
download | systemd-3e29b8895a910314aaea4a251fc959cde427c241.tar.xz systemd-3e29b8895a910314aaea4a251fc959cde427c241.zip |
libsystemd-network: set SOCK_CLOEXEC and SOCK_NONBLOCK
Diffstat (limited to 'src/libsystemd-network/test-ndisc-rs.c')
-rw-r--r-- | src/libsystemd-network/test-ndisc-rs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-network/test-ndisc-rs.c b/src/libsystemd-network/test-ndisc-rs.c index 70f289bcb5..caf94d10f8 100644 --- a/src/libsystemd-network/test-ndisc-rs.c +++ b/src/libsystemd-network/test-ndisc-rs.c @@ -176,7 +176,7 @@ static int test_rs_hangcheck(sd_event_source *s, uint64_t usec, int icmp6_bind_router_solicitation(int index) { assert_se(index == 42); - if (socketpair(AF_UNIX, SOCK_DGRAM, 0, test_fd) < 0) + if (socketpair(AF_UNIX, SOCK_DGRAM | SOCK_CLOEXEC | SOCK_NONBLOCK, 0, test_fd) < 0) return -errno; return test_fd[0]; |