summaryrefslogtreecommitdiff
path: root/usr.sbin/lpr/lpd/lpd.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-09-21 21:02:16 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-09-21 21:02:16 +0000
commit7b8b0f31076a424a301f8f1e75a6f674a3c5fc29 (patch)
tree0c19645d36ab0f1e84f47952025aefb257767d98 /usr.sbin/lpr/lpd/lpd.c
parent9fec7ff9d6d218135cbe251d19d3821c9a2cc233 (diff)
i so rarely forget htons & friends; this time i did -- warner caught me
Diffstat (limited to 'usr.sbin/lpr/lpd/lpd.c')
-rw-r--r--usr.sbin/lpr/lpd/lpd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/lpr/lpd/lpd.c b/usr.sbin/lpr/lpd/lpd.c
index 37f3fcb30e0..1c3f976aa35 100644
--- a/usr.sbin/lpr/lpd/lpd.c
+++ b/usr.sbin/lpr/lpd/lpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lpd.c,v 1.7 1996/09/21 07:56:31 deraadt Exp $ */
+/* $OpenBSD: lpd.c,v 1.8 1996/09/21 21:02:15 deraadt Exp $ */
/* $NetBSD: lpd.c,v 1.7 1996/04/24 14:54:06 mrg Exp $ */
/*
@@ -253,7 +253,7 @@ main(argc, argv)
domain = AF_INET, fromlen = sizeof(frominet);
s = accept(finet,
(struct sockaddr *)&frominet, &fromlen);
- if (frominet.s_port == 20) {
+ if (frominet.s_port == htons(20)) {
close(s);
continue;
}