1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

Fix a segfault when receiving duplicate packets.

Submitted by:	Gregg Stefancik
This commit is contained in:
Erwin Lansing 2009-03-11 19:52:28 +00:00
parent 377e3790b7
commit bbaff4a278
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=229906
2 changed files with 2 additions and 11 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= ssldump
PORTVERSION= 0.9b3
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= net security
MASTER_SITES= http://www.rtfm.com/ssldump/

View File

@ -1,5 +1,5 @@
--- base/tcppack.c.orig 2002-09-09 21:02:58.000000000 +0000
+++ base/tcppack.c 2009-03-11 09:09:07.000000000 +0000
+++ base/tcppack.c 2009-03-11 19:40:48.000000000 +0000
@@ -222,7 +222,6 @@
int r,_status;
tcp_seq seq,right_edge;
@ -62,12 +62,3 @@
_seg.p=p;
_seg.s_seq=seq;
@@ -422,6 +425,8 @@
l=_seq - (s)->s_seq; /* number of bytes to trim
from the left of s */
+ if(l < 1) return(0);
+
off=(s)->p->tcp->th_off*4;
if(l>((s)->p->len-off)) ERETURN(R_BAD_DATA);