From: robertc <> Date: Mon, 6 Oct 2003 07:20:07 +0000 (+0000) Subject: ensure comm_handler_remove only operates on active sockets X-Git-Tag: SQUID_3_0_PRE4~1193 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2f0fda5ba9d5cb0697a966d31ca93ca39073c1fe;p=thirdparty%2Fsquid.git ensure comm_handler_remove only operates on active sockets --- diff --git a/src/comm.cc b/src/comm.cc index 8e5096adfd..5b40275cd8 100644 --- a/src/comm.cc +++ b/src/comm.cc @@ -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 */