Mercurial > hg > nginx
comparison src/mail/ngx_mail_smtp_handler.c @ 3298:847ab5a32307
fix "PTR ." case in address resolver
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 09 Nov 2009 18:04:05 +0000 |
parents | a96a8c916b0c |
children | 0b6277a58a2d |
comparison
equal
deleted
inserted
replaced
3297:ebc5384479b4 | 3298:847ab5a32307 |
---|---|
122 ngx_mail_smtp_greeting(s, s->connection); | 122 ngx_mail_smtp_greeting(s, s->connection); |
123 | 123 |
124 return; | 124 return; |
125 } | 125 } |
126 | 126 |
127 if (ctx->name.len == 0) { | |
128 ngx_log_error(NGX_LOG_ERR, c->log, 0, | |
129 "%V has been resolved to zero name", &c->addr_text); | |
130 | |
131 s->host = smtp_unavailable; | |
132 | |
133 ngx_resolve_addr_done(ctx); | |
134 | |
135 ngx_mail_smtp_greeting(s, s->connection); | |
136 | |
137 return; | |
138 } | |
139 | |
127 c->log->action = "in resolving client hostname"; | 140 c->log->action = "in resolving client hostname"; |
128 | 141 |
129 s->host.data = ngx_pstrdup(c->pool, &ctx->name); | 142 s->host.data = ngx_pstrdup(c->pool, &ctx->name); |
130 if (s->host.data == NULL) { | 143 if (s->host.data == NULL) { |
131 ngx_resolve_addr_done(ctx); | 144 ngx_resolve_addr_done(ctx); |