cvs commit: src/sys/netinet tcp_hostcache.c

Andre Oppermann andre at FreeBSD.org
Thu Jun 7 21:41:52 UTC 2007


andre       2007-06-07 21:41:51 UTC

  FreeBSD src repository

  Modified files:
    sys/netinet          tcp_hostcache.c 
  Log:
  In tcp_hc_insert() we may have the case where we have hit the global
  cache size limit but this bucket row is empty.  Normally we want to
  recycle the oldest entry in the bucket row.  If there isn't any the
  TAILQ_REMOVE leads to a panic by trying to remove a non-existing
  element.  Fix this by just returning NULL and failing the insert.
  This is not a problem as the TCP hostache is only advisory.
  
  Submitted by:   jhb
  
  Revision  Changes    Path
  1.14      +6 -0      src/sys/netinet/tcp_hostcache.c


More information about the cvs-src mailing list