]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
[Bug 3573] nptdate: missleading error message
authorJuergen Perlinger <perlinger@ntp.org>
Thu, 2 May 2019 08:26:12 +0000 (10:26 +0200)
committerJuergen Perlinger <perlinger@ntp.org>
Thu, 2 May 2019 08:26:12 +0000 (10:26 +0200)
bk: 5ccaa9a4oOQBQlXZJ4LlWQgINMIaGA

ntpdate/ntpdate.c

index 94cc1af2b79bbb1b398912e58a4bfbc1c94f48b0..62692fa063756da7680bfdafd37936337b686e55 100644 (file)
@@ -1753,9 +1753,7 @@ init_io(void)
                /* Restricts AF_INET6 socket to IPv6 communications (see RFC 2553bis-03) */
                if (res->ai_family == AF_INET6)
                        if (setsockopt(fd[nbsock], IPPROTO_IPV6, IPV6_V6ONLY, (void*) &optval, sizeof(optval)) < 0) {
-                                  msyslog(LOG_ERR, "setsockopt() IPV6_V6ONLY failed: %m");
-                                       exit(1);
-                                       /*NOTREACHED*/
+                               msyslog(LOG_ERR, "setsockopt() IPV6_V6ONLY failed: %m");
                }
 #endif