Mercurial > hg > nginx
diff src/core/ngx_conf_file.c @ 92:19cc647ecd91
nginx-0.0.1-2003-05-20-19:37:55 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 20 May 2003 15:37:55 +0000 |
parents | 637625a2acdb |
children | a23d010f356d |
line wrap: on
line diff
--- a/src/core/ngx_conf_file.c Mon May 19 16:39:14 2003 +0000 +++ b/src/core/ngx_conf_file.c Tue May 20 15:37:55 2003 +0000 @@ -435,6 +435,10 @@ int flag; ngx_str_t *value; + if (*(int *) (conf + cmd->offset) != NGX_CONF_UNSET) { + return "is duplicate"; + } + value = (ngx_str_t *) cf->args->elts; if (ngx_strcasecmp(value[1].data, "on") == 0) { @@ -458,6 +462,11 @@ ngx_str_t *field, *value; field = (ngx_str_t *) (conf + cmd->offset); + + if (field->len > 0) { + return "is duplicate"; + } + value = (ngx_str_t *) cf->args->elts; field->len = value[1].len; @@ -472,6 +481,10 @@ int num, len; ngx_str_t *value; + if (*(int *) (conf + cmd->offset) != NGX_CONF_UNSET) { + return "is duplicate"; + } + value = (ngx_str_t *) cf->args->elts; len = value[1].len; @@ -493,6 +506,10 @@ char last; ngx_str_t *value; + if (*(int *) (conf + cmd->offset) != NGX_CONF_UNSET) { + return "is duplicate"; + } + value = (ngx_str_t *) cf->args->elts; len = value[1].len; @@ -535,6 +552,10 @@ char last, *start; ngx_str_t *value; + if (*(int *) (conf + cmd->offset) != NGX_CONF_UNSET) { + return "is duplicate"; + } + value = (ngx_str_t *) cf->args->elts; start = value[1].data; len = 0; @@ -626,6 +647,10 @@ char last, *start; ngx_str_t *value; + if (*(int *) (conf + cmd->offset) != NGX_CONF_UNSET) { + return "is duplicate"; + } + value = (ngx_str_t *) cf->args->elts; start = value[1].data; len = 0;