]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
socket: fix setsockopt call. SOL_SOCKET changed to SOL_TCP. 1091/head
authorRobin Hack <rhack@redhat.com>
Mon, 31 Aug 2015 09:45:09 +0000 (11:45 +0200)
committerRobin Hack <rhack@redhat.com>
Mon, 31 Aug 2015 09:45:09 +0000 (11:45 +0200)
src/core/socket.c

index 08efc3754ced4ec560e3ec6dfc332129937a829a..aa65c5b7a0b2569c3c0a4a9be33e1771b70de7e6 100644 (file)
@@ -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");
         }