diff options
author | Igor Sysoev <igor@sysoev.ru> | 2008-03-06 08:48:25 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2008-03-06 08:48:25 +0000 |
commit | 73eb97f5005778092293588f3b2d5524e0c0a1da (patch) | |
tree | ee1164fc371fcafad1acc6c4a2304ce4b7a4a502 /src | |
parent | a4d00f1c9737a3dab723ed8b87c0645a678428d3 (diff) | |
download | nginx-73eb97f5005778092293588f3b2d5524e0c0a1da.tar.gz nginx-73eb97f5005778092293588f3b2d5524e0c0a1da.zip |
check duplicate resolver
Diffstat (limited to 'src')
-rw-r--r-- | src/mail/ngx_mail_core_module.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mail/ngx_mail_core_module.c b/src/mail/ngx_mail_core_module.c index 15627d245..03635fc43 100644 --- a/src/mail/ngx_mail_core_module.c +++ b/src/mail/ngx_mail_core_module.c @@ -422,6 +422,10 @@ ngx_mail_core_resolver(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) value = cf->args->elts; + if (cscf->resolver != NGX_CONF_UNSET_PTR) { + return "is duplicate"; + } + if (ngx_strcmp(value[1].data, "off") == 0) { cscf->resolver = NULL; return NGX_CONF_OK; |