summaryrefslogtreecommitdiffstats
path: root/src/libsystemd-network/fuzz-ndisc-rs.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-12-19 13:20:30 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-12-19 15:00:59 +0100
commit3401477982d09e0c9815ae5a69e56f43f187967e (patch)
treefdf3ce225df76b9e643835928dc29aeef02a51fc /src/libsystemd-network/fuzz-ndisc-rs.c
parenttree-wide: change initialization to use EBADF instead of EBADFD (diff)
downloadsystemd-3401477982d09e0c9815ae5a69e56f43f187967e.tar.xz
systemd-3401477982d09e0c9815ae5a69e56f43f187967e.zip
tree-wide: use -EBADF also in pipe initializers
In some places, initialization is dropped when unnecesary.
Diffstat (limited to 'src/libsystemd-network/fuzz-ndisc-rs.c')
-rw-r--r--src/libsystemd-network/fuzz-ndisc-rs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-network/fuzz-ndisc-rs.c b/src/libsystemd-network/fuzz-ndisc-rs.c
index b294611fab..b794e2ad42 100644
--- a/src/libsystemd-network/fuzz-ndisc-rs.c
+++ b/src/libsystemd-network/fuzz-ndisc-rs.c
@@ -11,7 +11,7 @@
#include "socket-util.h"
#include "ndisc-internal.h"
-static int test_fd[2] = { -1, -1 };
+static int test_fd[2] = { -EBADF, -EBADF };
int icmp6_bind_router_solicitation(int index) {
assert_se(socketpair(AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC | SOCK_NONBLOCK, 0, test_fd) >= 0);