From: Danny Mayer Date: Mon, 17 Jan 2005 00:29:57 +0000 (-0500) Subject: Added debug code findinterface to see if the connect() fails X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf259e2be5a556804dc16b5957cc43690e9f1894;p=thirdparty%2Fntp.git Added debug code findinterface to see if the connect() fails bk: 41eb07059IqbB2bn6BRuz7y1Ho-0hg --- diff --git a/ntpd/ntp_io.c b/ntpd/ntp_io.c index 294042e440..113c26f10a 100644 --- a/ntpd/ntp_io.c +++ b/ntpd/ntp_io.c @@ -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); }