summaryrefslogtreecommitdiff
path: root/sys/net/if_spppsubr.c
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2001-12-26 22:36:32 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2001-12-26 22:36:32 +0000
commitd6695459bdd417750d032440a6bf7cd8c55308ca (patch)
treef61626d1af4126a2ac5fb43ff7a8251bfb9a5314 /sys/net/if_spppsubr.c
parentdf69e1386b32b38de259c086b597fb39cd84d53d (diff)
misplaced (), causing tcp header be examined in non-tcp packets
Diffstat (limited to 'sys/net/if_spppsubr.c')
-rw-r--r--sys/net/if_spppsubr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/if_spppsubr.c b/sys/net/if_spppsubr.c
index c45ec27d7d3..1c61a3b21c1 100644
--- a/sys/net/if_spppsubr.c
+++ b/sys/net/if_spppsubr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_spppsubr.c,v 1.11 2001/12/10 06:10:53 jason Exp $ */
+/* $OpenBSD: if_spppsubr.c,v 1.12 2001/12/26 22:36:31 mickey Exp $ */
/*
* Synchronous PPP/Cisco link level subroutines.
* Keepalive protocol implemented in both Cisco and PPP modes.
@@ -705,8 +705,8 @@ sppp_output(struct ifnet *ifp, struct mbuf *m,
((ip->ip_tos & IPTOS_LOWDELAY) ||
((ip->ip_p == IPPROTO_TCP &&
m->m_len >= sizeof (struct ip) + sizeof (struct tcphdr) &&
- (INTERACTIVE (ntohs (tcp->th_sport)))) ||
- INTERACTIVE (ntohs (tcp->th_dport)))))
+ (INTERACTIVE (ntohs (tcp->th_sport))) ||
+ INTERACTIVE (ntohs (tcp->th_dport))))))
ifq = &sp->pp_fastq;
}
#endif