From 870cec0ac83c0359180704c254862c8e49703ba8 Mon Sep 17 00:00:00 2001 From: Alex Rousskov Date: Tue, 13 Jul 2010 19:00:21 -0600 Subject: [PATCH] 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". --- src/CommCalls.h | 3 +++ 1 file changed, 3 insertions(+) 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; } -- 2.47.2