From: Ruediger Pluem Date: Fri, 24 Oct 2008 16:00:10 +0000 (+0000) Subject: * save_table needs to be declared first before it can be used. X-Git-Tag: 2.3.0~233 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c674a71e6f7b980cfecc217769749cec0d0cf57;p=thirdparty%2Fapache%2Fhttpd.git * save_table needs to be declared first before it can be used. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@707665 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/proxy/ajp_header.c b/modules/proxy/ajp_header.c index c7797b96a5b..c8617d1bd29 100644 --- a/modules/proxy/ajp_header.c +++ b/modules/proxy/ajp_header.c @@ -498,12 +498,14 @@ static apr_status_t ajp_unmarshal_response(ajp_msg_t *msg, rc = ajp_msg_get_uint16(msg, &num_headers); if (rc == APR_SUCCESS) { + apr_table_t *save_table; + /* First, tuck away all already existing cookies */ /* * Could optimize here, but just in case we want to * also save other headers, keep this logic. */ - save_table = apr_table_make(r->pool, num_headers+2); + save_table = apr_table_make(r->pool, num_headers + 2); apr_table_do(addit_dammit, save_table, r->headers_out, "Set-Cookie", NULL); r->headers_out = save_table;