Project

General

Profile

Bug #2465 ยป mod_fastcgi.c.diff

Patch ("diff -u" output) - peex, 2013-01-04 04:05

View differences:

src/mod_fastcgi_patched.c 2013-01-04 02:38:46.009222772 +0100
1160 1160
	plugin_data *p = p_d;
1161 1161
	data_unset *du;
1162 1162
	size_t i = 0;
1163
	buffer *fcgi_mode = buffer_init();
1164 1163

  
1165 1164
	config_values_t cv[] = {
1166 1165
		{ "fastcgi.server",              NULL, T_CONFIG_LOCAL, T_CONFIG_SCOPE_CONNECTION },       /* 0 */
......
1240 1239
					data_array *da_host = (data_array *)da_ext->value->data[n];
1241 1240

  
1242 1241
					fcgi_extension_host *host;
1242
					
1243
					/* empty fcgi_mode value is interpreted as default (i.e. "responder") */
1244
					buffer *fcgi_mode = buffer_init();
1243 1245

  
1244 1246
					config_values_t fcv[] = {
1245 1247
						{ "host",              NULL, T_CONFIG_STRING, T_CONFIG_SCOPE_CONNECTION },       /* 0 */
......
1447 1449

  
1448 1450
					/* if extension already exists, take it */
1449 1451
					fastcgi_extension_insert(s->exts, da_ext->key, host);
1452
					
1453
					buffer_free(fcgi_mode);
1450 1454
				}
1451 1455
			}
1452 1456
		}
1453 1457
	}
1454 1458

  
1455
	buffer_free(fcgi_mode);
1456

  
1457 1459
	return HANDLER_GO_ON;
1458 1460
}
1459 1461

  
    (1-1/1)