artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ddc88d
)
Fix byte-order bug in net number comparison (NetBSD).
author
millert
<millert@openbsd.org>
Sun, 1 Dec 1996 05:25:55 +0000
(
05:25
+0000)
committer
millert
<millert@openbsd.org>
Sun, 1 Dec 1996 05:25:55 +0000
(
05:25
+0000)
From Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>, NetBSD PR #2961.
usr.sbin/timed/timed/timed.c
patch
|
blob
|
history
diff --git
a/usr.sbin/timed/timed/timed.c
b/usr.sbin/timed/timed/timed.c
index
a0ea907
..
c6d2269
100644
(file)
--- 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 (nt
p->net.s_addr
== nt->net)
+ if (nt
ohl(ntp->net.s_addr)
== nt->net)
break;
}
if (nflag && !nt || iflag && nt)