Project

General

Profile

Bug #2135 ยป configfile-glue.c.patch

liming, 2009-12-31 05:01

View differences:

configfile-glue.c.new 2009-12-31 12:26:32.000000000 +0800
290 290
					/* nothing to do with it */
291 291
					break;
292 292
				}
293
				if (ck_colon) {
293
				if (ck_colon && !val_colon) {
294 294
					/* condition "host:port" but client send "host" */
295 295
					buffer_copy_string_buffer(srv->cond_check_buf, l);
296 296
					buffer_append_string_len(srv->cond_check_buf, CONST_STR_LEN(":"));
297 297
					buffer_append_long(srv->cond_check_buf, sock_addr_get_port(&(srv_sock->addr)));
298 298
					l = srv->cond_check_buf;
299
				} else if (!ck_colon) {
299
				} else if (!ck_colon && val_colon) {
300 300
					/* condition "host" but client send "host:port" */
301 301
					buffer_copy_string_len(srv->cond_check_buf, l->ptr, val_colon - l->ptr);
302 302
					l = srv->cond_check_buf;
    (1-1/1)