Module Name: src Committed By: kardel Date: Wed Feb 1 21:21:26 UTC 2012
Modified Files: src/external/bsd/ntp/dist/ntpd: ntp_io.c Log Message: initialize min_dist To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/external/bsd/ntp/dist/ntpd/ntp_io.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/external/bsd/ntp/dist/ntpd/ntp_io.c diff -u src/external/bsd/ntp/dist/ntpd/ntp_io.c:1.8 src/external/bsd/ntp/dist/ntpd/ntp_io.c:1.9 --- src/external/bsd/ntp/dist/ntpd/ntp_io.c:1.8 Wed Feb 1 20:48:01 2012 +++ src/external/bsd/ntp/dist/ntpd/ntp_io.c Wed Feb 1 21:21:25 2012 @@ -1,4 +1,4 @@ -/* $NetBSD: ntp_io.c,v 1.8 2012/02/01 20:48:01 kardel Exp $ */ +/* $NetBSD: ntp_io.c,v 1.9 2012/02/01 21:21:25 kardel Exp $ */ /* * ntp_io.c - input/output routines for ntpd. The socket-opening code @@ -3801,7 +3801,9 @@ findclosestinterface( sockaddr_u addr_dist; sockaddr_u min_dist; + winner = NULL; + min_dist = *addr; for (ep = ep_list; ep != NULL; ep = ep->elink) { if (ep->ignore_packets ||