diff options
author | Robin Hack <rhack@redhat.com> | 2015-08-31 11:45:09 +0200 |
---|---|---|
committer | Robin Hack <rhack@redhat.com> | 2015-08-31 11:45:09 +0200 |
commit | 172cfe8714754e1f16fc500e3ed02c4de68de92f (patch) | |
tree | 5380be3f44721b0ff6151f5e9ea02ecfb862ec34 /src/core/socket.c | |
parent | bbc19baa50c513973c86a7f5c2fb7a31678d6cd5 (diff) |
socket: fix setsockopt call. SOL_SOCKET changed to SOL_TCP.
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 08efc3754c..aa65c5b7a0 100644 --- a/src/core/socket.c +++ b/src/core/socket.c @@ -839,7 +839,7 @@ static void socket_apply_socket_options(Socket *s, int fd) { if (s->keep_alive_cnt) { int value = s->keep_alive_cnt; - if (setsockopt(fd, SOL_SOCKET, TCP_KEEPCNT, &value, sizeof(value)) < 0) + if (setsockopt(fd, SOL_TCP, TCP_KEEPCNT, &value, sizeof(value)) < 0) log_unit_warning_errno(UNIT(s), errno, "TCP_KEEPCNT failed: %m"); } |