You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Cliff Skolnick <cl...@organic.com> on 1995/12/23 01:39:50 UTC

mod_negotiation.c patch

Found that negotiation was doing wierd stuff under solaris 2.5.  It
seems that apache was keeping a reference to a scratch area, oops.
Stuff is now happy...

Cliff


*** mod_negotiation.c-orig  Fri Dec 22 16:04:27 1995
--- mod_negotiation.c   Fri Dec 22 15:38:33 1995
***************
*** 707,713 ****
         */
  
        mime_info.sub_req = sub_req;
!       mime_info.file_name = dir_entry->d_name;
        mime_info.content_encoding = sub_req->content_encoding;
        mime_info.content_language = sub_req->content_language;
  
--- 707,713 ----
         */
  
        mime_info.sub_req = sub_req;
!       mime_info.file_name = pstrdup(neg->pool, dir_entry->d_name);
        mime_info.content_encoding = sub_req->content_encoding;
        mime_info.content_language = sub_req->content_language;