You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Rodent of Unusual Size <co...@decus.org> on 1997/03/02 06:19:34 UTC

Re: [PATCH] for ErrorDocument (was: Re: [BUG]: "ErrorDocument appears to break in 1.2b7" on Solaris 2.x)

>From the fingers of Dean Gaudet flowed the following:
>
>Aw shoot.  Goofup in my optimization patch.  Try this.

    Does the trick here.  +1.

    #ken    :-)}

>Index: http_core.c
>===================================================================
>RCS file: /export/home/cvs/apache/src/http_core.c,v
>retrieving revision 1.70
>diff -c -3 -r1.70 http_core.c
>*** http_core.c	1997/02/17 10:46:06	1.70
>--- http_core.c	1997/02/26 07:59:44
>***************
>*** 120,125 ****
>--- 120,131 ----
>      int i;
>    
>      memcpy ((char *)conf, (const char *)base, sizeof(core_dir_config));
>+     if( base->response_code_strings ) {
>+ 	conf->response_code_strings = palloc(a,
>+ 	    sizeof(*conf->response_code_strings) * RESPONSE_CODES );
>+ 	memcpy( conf->response_code_strings, base->response_code_strings,
>+ 	    sizeof(*conf->response_code_strings) * RESPONSE_CODES );
>+     }
>      
>      conf->d = new->d;
>      conf->d_is_matchexp = new->d_is_matchexp;
>