From: Alex Rousskov Date: Wed, 14 Jul 2010 01:00:21 +0000 (-0600) Subject: Bug 2651 fix: squid crashing with ident auth X-Git-Tag: SQUID_3_2_0_1~62 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=870cec0ac83c0359180704c254862c8e49703ba8;p=thirdparty%2Fsquid.git Bug 2651 fix: squid crashing with ident auth Check whether the old-style (function-based) callback has the function address to call. A writer may leave no "callback number". --- diff --git a/src/CommCalls.h b/src/CommCalls.h index c5b39411a1..5012e836b2 100644 --- a/src/CommCalls.h +++ b/src/CommCalls.h @@ -311,6 +311,9 @@ CommCbFunPtrCallT::canFire() if (!dialer.params.syncWithComm()) return cancel("out of sync w/comm"); + if (!dialer.handler) + return cancel("no callback requested"); + return true; }