From: hno <> Date: Sat, 14 May 2005 08:39:40 +0000 (+0000) Subject: commSetTimeout doesn't really require a handler to be set. Calls X-Git-Tag: SQUID_3_0_PRE4~748 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7c3b8b645e5527a0f17dea9310e4045f05e5cecd;p=thirdparty%2Fsquid.git commSetTimeout doesn't really require a handler to be set. Calls comm_close if there is none. --- diff --git a/src/comm.cc b/src/comm.cc index 74160f838b..1fc8a2916a 100644 --- a/src/comm.cc +++ b/src/comm.cc @@ -1,6 +1,6 @@ /* - * $Id: comm.cc,v 1.405 2005/05/14 00:51:10 hno Exp $ + * $Id: comm.cc,v 1.406 2005/05/14 02:39:40 hno Exp $ * * DEBUG: section 5 Socket Functions * AUTHOR: Harvest Derived @@ -1442,8 +1442,6 @@ commSetTimeout(int fd, int timeout, PF * handler, void *data) F->timeout_handler = NULL; F->timeout = 0; } else { - assert(handler || F->timeout_handler); - if (handler) { cbdataReferenceDone(F->timeout_data); F->timeout_handler = handler;