diff options
author | 1996-12-01 05:25:55 +0000 | |
---|---|---|
committer | 1996-12-01 05:25:55 +0000 | |
commit | f3326fb59fe23bd283db42f651d118fc8e4d6d83 (patch) | |
tree | 07b6e36d5b0bde736608991f338678eaa59e88b8 | |
parent | Parser fix from NetBSD (christos) (diff) | |
download | wireguard-openbsd-f3326fb59fe23bd283db42f651d118fc8e4d6d83.tar.xz wireguard-openbsd-f3326fb59fe23bd283db42f651d118fc8e4d6d83.zip |
Fix byte-order bug in net number comparison (NetBSD).
From Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>, NetBSD PR #2961.
-rw-r--r-- | usr.sbin/timed/timed/timed.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/timed/timed/timed.c b/usr.sbin/timed/timed/timed.c index a0ea90708fa..c6d22698eb0 100644 --- a/usr.sbin/timed/timed/timed.c +++ b/usr.sbin/timed/timed/timed.c @@ -42,7 +42,7 @@ static char sccsid[] = "@(#)timed.c 5.1 (Berkeley) 5/11/93"; #endif /* not lint */ #ifdef sgi -#ident "$Revision: 1.3 $" +#ident "$Revision: 1.4 $" #endif /* sgi */ #define TSPTYPES @@ -452,7 +452,7 @@ main(int argc, char **argv) ntp->dest_addr.sin_port = port; for (nt = nets; nt; nt = nt->next) { - if (ntp->net.s_addr == nt->net) + if (ntohl(ntp->net.s_addr) == nt->net) break; } if (nflag && !nt || iflag && nt) |