Commit 7f4ef731 authored by Andre Malo's avatar Andre Malo
Browse files

don't segfault, when setting an empty header value

Reviewed by: Brad Nicholes, Jeff Trawick


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/APACHE_2_0_BRANCH@103495 13f79535-47bb-0310-9956-ffa450edef68
parent 4265ecac
Loading
Loading
Loading
Loading
+3 −0
Changes for CHANGES: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
Changes with Apache 2.0.50
  *) mod_headers no longer crashes if an empty header value should
     be added.  [Andr Malo]
  *) Fix segfault in mod_expires, which occured under certain
     circumstances. PR 28047.  [Andr Malo]
+1 −5
Changes for STATUS: 1 added line, 5 removed lines.
Original line number Diff line number Diff line
APACHE 2.0 STATUS:                                              -*-text-*-
Last modified at [$Date: 2004/04/24 11:43:01 $]
Last modified at [$Date: 2004/04/24 11:51:06 $]

Release:

@@ -93,10 +93,6 @@ PATCHES TO BACKPORT FROM 2.1
         server/core.c: r1.275
       +1: nd

    *) mod_headers: don't segfault, when supplying an empty header value
         modules/metadata/mod_headers.c: r1.56
       +1: nd, bnicholes, trawick

    *) mod_headers: Backport ErrorHeader directive (regression from 1.3)
         modules/metadata/mod_headers.c: r1.44, 1.45, 1.51
       +1: nd, trawick
+1 −1
Changes for modules/metadata/mod_headers.c: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -435,7 +435,7 @@ static char* process_tags(header_entry *hdr, request_rec *r)
        else
            str = apr_pstrcat(r->pool, str, s, NULL);
    }
    return str;
    return str ? str : "";
}

static int echo_header(echo_do *v, const char *key, const char *val)