Mercurial > hg > nginx
diff src/mail/ngx_mail_smtp_handler.c @ 3299:0b6277a58a2d
*) fix resolving an empty name ("."),
*) add quotes in an error message,
*) backout r3299 in ngx_mail_smtp_handler.c
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 09 Nov 2009 19:15:11 +0000 |
parents | 847ab5a32307 |
children | dd1570b6f237 |
line wrap: on
line diff
--- a/src/mail/ngx_mail_smtp_handler.c Mon Nov 09 18:04:05 2009 +0000 +++ b/src/mail/ngx_mail_smtp_handler.c Mon Nov 09 19:15:11 2009 +0000 @@ -124,19 +124,6 @@ return; } - if (ctx->name.len == 0) { - ngx_log_error(NGX_LOG_ERR, c->log, 0, - "%V has been resolved to zero name", &c->addr_text); - - s->host = smtp_unavailable; - - ngx_resolve_addr_done(ctx); - - ngx_mail_smtp_greeting(s, s->connection); - - return; - } - c->log->action = "in resolving client hostname"; s->host.data = ngx_pstrdup(c->pool, &ctx->name); @@ -204,7 +191,7 @@ if (ctx->state) { ngx_log_error(NGX_LOG_ERR, c->log, 0, - "%V could not be resolved (%i: %s)", + "\"%V\" could not be resolved (%i: %s)", &ctx->name, ctx->state, ngx_resolver_strerror(ctx->state));