]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 2651 fix: squid crashing with ident auth
authorAlex Rousskov <rousskov@measurement-factory.com>
Wed, 14 Jul 2010 01:00:21 +0000 (19:00 -0600)
committerAlex Rousskov <rousskov@measurement-factory.com>
Wed, 14 Jul 2010 01:00:21 +0000 (19:00 -0600)
Check whether the old-style (function-based) callback has the
function address to call. A writer may leave no "callback number".

src/CommCalls.h

index c5b39411a18d31bf10f61e5160e09ccb9c7d3167..5012e836b2ce721602adc52c79d7e76b829b417e 100644 (file)
@@ -311,6 +311,9 @@ CommCbFunPtrCallT<Dialer>::canFire()
     if (!dialer.params.syncWithComm())
         return cancel("out of sync w/comm");
 
+    if (!dialer.handler)
+        return cancel("no callback requested");
+
     return true;
 }