From ba5060e5aef19aba720eca3a81c74a16fa0c61fa Mon Sep 17 00:00:00 2001 From: Jason Wright Date: Thu, 17 Aug 2000 21:44:57 +0000 Subject: use destination lengths when trimming the output packet (cut and pasto) --- sys/dev/pci/ubsec.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys') diff --git a/sys/dev/pci/ubsec.c b/sys/dev/pci/ubsec.c index 0bbe4d58c73..d0268f14276 100644 --- a/sys/dev/pci/ubsec.c +++ b/sys/dev/pci/ubsec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ubsec.c,v 1.30 2000/08/17 13:54:23 jason Exp $ */ +/* $OpenBSD: ubsec.c,v 1.31 2000/08/17 21:44:56 jason Exp $ */ /* * Copyright (c) 2000 Jason L. Wright (jason@thought.net) @@ -877,15 +877,15 @@ ubsec_process(crp) pb->pb_addr = q->q_dst_packp[i]; if (dtheend) { - if (q->q_src_packl[i] > dtheend) { + if (q->q_dst_packl[i] > dtheend) { pb->pb_len = dtheend; dtheend = 0; } else { - pb->pb_len = q->q_src_packl[i]; + pb->pb_len = q->q_dst_packl[i]; dtheend -= pb->pb_len; } } else - pb->pb_len = q->q_src_packl[i]; + pb->pb_len = q->q_dst_packl[i]; if ((i + 1) == q->q_dst_npa) { if (maccrd) -- cgit v1.2.3