]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Added debug code findinterface to see if the connect() fails
authorDanny Mayer <mayer@ntp.org>
Mon, 17 Jan 2005 00:29:57 +0000 (19:29 -0500)
committerDanny Mayer <mayer@ntp.org>
Mon, 17 Jan 2005 00:29:57 +0000 (19:29 -0500)
bk: 41eb07059IqbB2bn6BRuz7y1Ho-0hg

ntpd/ntp_io.c

index 294042e4407b4274184ca1c17d5a71ea36713173..113c26f10a56220c7f8deab0d13234b9dc956573 100644 (file)
@@ -2167,6 +2167,12 @@ findinterface(
        if (rtn == SOCKET_ERROR)
 #endif
        {
+#ifdef DEBUG
+               if (debug > 2)
+               {
+                       msyslog(LOG_ERR, "Failed to connect to remote address, error: %m");
+               }
+#endif
                closesocket(s);
                return ANY_INTERFACE_CHOOSE(addr);
        }