From 878ebad91eec3b4d8a2348928c28b46261823a93 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sat, 21 Sep 1996 21:05:42 +0000 Subject: doh --- usr.sbin/lpr/lpd/lpd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.sbin/lpr/lpd') diff --git a/usr.sbin/lpr/lpd/lpd.c b/usr.sbin/lpr/lpd/lpd.c index 1c3f976aa35..47300e98ab5 100644 --- a/usr.sbin/lpr/lpd/lpd.c +++ b/usr.sbin/lpr/lpd/lpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lpd.c,v 1.8 1996/09/21 21:02:15 deraadt Exp $ */ +/* $OpenBSD: lpd.c,v 1.9 1996/09/21 21:05:41 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 == htons(20)) { + if (frominet.sin_port == htons(20)) { close(s); continue; } -- cgit v1.2.3