]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
ensure comm_handler_remove only operates on active sockets
authorrobertc <>
Mon, 6 Oct 2003 07:20:07 +0000 (07:20 +0000)
committerrobertc <>
Mon, 6 Oct 2003 07:20:07 +0000 (07:20 +0000)
src/comm.cc

index 8e5096adfdbc9c5c1e640c530293d31f038eb57d..5b40275cd8ae809e6d90fdf1a3ee30d01843ab00 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: comm.cc,v 1.389 2003/09/06 12:47:34 robertc Exp $
+ * $Id: comm.cc,v 1.390 2003/10/06 01:20:07 robertc Exp $
  *
  * DEBUG: section 5     Socket Functions
  * AUTHOR: Harvest Derived
@@ -1972,6 +1972,7 @@ comm_add_close_handler(int fd, PF * handler, void *data)
 void
 comm_remove_close_handler(int fd, PF * handler, void *data)
 {
+    assert (fdc_table[fd].active);
     close_handler *p;
     close_handler *last = NULL;
     /* Find handler in list */