fix for 1.1.alpha10 stupid coredump

From: Duane Wessels <wessels>
Date: Tue, 20 Aug 96 07:37:24 -0700

1.1.alpha10 has a bug which causes a coredump every time
squid_error_entry() gets called. Here's a fix:

===================================================================
RCS file: /surf1/CVS/squid/src/cache_cf.c,v
retrieving revision 1.68
diff -w -c -r1.68 cache_cf.c
*** cache_cf.c 1996/08/19 22:44:50 1.68
--- cache_cf.c 1996/08/20 14:14:07
***************
*** 1440,1445 ****
--- 1440,1447 ----
      httpd_accel_mode = Config.Accel.prefix ? 1 : 0;
      sprintf(ForwardedBy, "Forwarded: by http://%s:%d/",
        getMyHostname(), Config.Port.http);
+ if (Config.errHtmlText == NULL)
+ Config.errHtmlText = xstrdup("");
  
  #if !ALLOW_HOT_CACHE
      if (!httpd_accel_mode || Config.Accel.withProxy) {
Received on Tue Aug 20 1996 - 07:37:24 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:32:49 MST