From 5b49d899ecb8de43d13c691faa6fad7a2e35a4db Mon Sep 17 00:00:00 2001 From: Jonathan Lemon Date: Thu, 21 Aug 1997 19:53:04 +0000 Subject: [PATCH] Convert nets specified with -i/-n to network byte order. PR: 3906, 3801 Submitted by: Bob Willcox , Hiroya Tsubakimoto --- usr.sbin/timed/timed/timed.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/timed/timed/timed.c b/usr.sbin/timed/timed/timed.c index 997e49236cae..2c129de4f277 100644 --- a/usr.sbin/timed/timed/timed.c +++ b/usr.sbin/timed/timed/timed.c @@ -42,7 +42,7 @@ static char sccsid[] = "@(#)timed.c 8.1 (Berkeley) 6/6/93"; #endif /* not lint */ #ifdef sgi -#ident "$Revision: 1.2 $" +#ident "$Revision: 1.3 $" #endif /* sgi */ #define TSPTYPES @@ -452,7 +452,7 @@ main(argc, argv) ntp->dest_addr.sin_port = port; for (nt = nets; nt; nt = nt->next) { - if (ntp->net.s_addr == nt->net) + if (ntp->net.s_addr == htonl(nt->net)) break; } if (nflag && !nt || iflag && nt)