diff options
Diffstat (limited to 'src/core/socket.c')
-rw-r--r-- | src/core/socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/socket.c b/src/core/socket.c index f505e4f969..751f20bdca 100644 --- a/src/core/socket.c +++ b/src/core/socket.c @@ -771,7 +771,7 @@ static void socket_apply_socket_options(Socket *s, int fd) { if (s->reuseport) { int b = s->reuseport; - if (setsockopt(fd, SOL_SOCKET, SO_REUSEPORT, &b, sizeof(b))) + if (setsockopt(fd, SOL_SOCKET, SO_REUSEPORT, &b, sizeof(b)) < 0) log_warning_unit(UNIT(s)->id, "SO_REUSEPORT failed: %m"); } |