DragonFly BSD
DragonFly commits List (threaded) for 2005-03
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

cvs commit: src/sys/netinet ip_demux.c


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 22 Mar 2005 23:27:56 -0800 (PST)

dillon      2005/03/22 23:27:56 PST

DragonFly src repository

  Modified files:
    sys/netinet          ip_demux.c 
  Log:
  Correct the th_off check against ip_len.  The check in ip_demux occurs
  before ip_len is adjusted so we have to add iphlen into the equation.  We
  forgot to do this when the code was originally moved from tcp_input to
  ip_demux (in tcp_input the check occurs after ip_len is adjusted).
  
  This fixes a panic assertion in tcp_input when a mangled packet is received.
  
  Reported-by: Joe Talbott <josepht@xxxxxxxxxx>
  
  Revision  Changes    Path
  1.32      +1 -1      src/sys/netinet/ip_demux.c


http://www.dragonflybsd.org/cvsweb/src/sys/netinet/ip_demux.c.diff?r1=1.31&r2=1.32&f=u



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]