You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rp...@apache.org on 2008/10/24 18:00:10 UTC
svn commit: r707665 - /httpd/httpd/trunk/modules/proxy/ajp_header.c
Author: rpluem
Date: Fri Oct 24 09:00:10 2008
New Revision: 707665
URL: http://svn.apache.org/viewvc?rev=707665&view=rev
Log:
* save_table needs to be declared first before it can be used.
Modified:
httpd/httpd/trunk/modules/proxy/ajp_header.c
Modified: httpd/httpd/trunk/modules/proxy/ajp_header.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/proxy/ajp_header.c?rev=707665&r1=707664&r2=707665&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/proxy/ajp_header.c (original)
+++ httpd/httpd/trunk/modules/proxy/ajp_header.c Fri Oct 24 09:00:10 2008
@@ -498,12 +498,14 @@
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;