From: wessels <> Date: Sun, 18 Oct 1998 14:29:09 +0000 (+0000) Subject: avoid NPR if helper is NULL X-Git-Tag: SQUID_3_0_PRE1~2553 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5b5f92570652856a02fc437ad3d5af84deadf07e;p=thirdparty%2Fsquid.git avoid NPR if helper is NULL --- diff --git a/src/helper.cc b/src/helper.cc index 1ca20dff53..c0ed0b75f5 100644 --- a/src/helper.cc +++ b/src/helper.cc @@ -94,6 +94,11 @@ helperSubmit(helper * hlp, const char *buf, HLPCB * callback, void *data) { helper_request *r = xcalloc(1, sizeof(*r)); helper_server *srv; + if (hlp == NULL) { + debug(29,3)("helperSubmit: hlp == NULL\n"); + callback(data, NULL); + return; + } r->callback = callback; r->data = data; r->buf = xstrdup(buf);