From 9ac946bcc9f8f3735af8eb253c1e89f177db5827 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Mon, 24 Oct 2005 15:09:41 +0000 Subject: nginx-0.3.6-RELEASE import *) Change: now the IMAP/POP3 proxy do not send the empty login to authorization server. *) Feature: the "log_format" supports the variables in the $name form. *) Bugfix: if at least in one server was no the "listen" directive, then nginx did not listen on the 80 port; the bug had appeared in 0.3.3. *) Bugfix: if the URI part is omitted in "proxy_pass" directive, the the 80 port was always used. --- src/imap/ngx_imap_handler.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/imap/ngx_imap_handler.c') diff --git a/src/imap/ngx_imap_handler.c b/src/imap/ngx_imap_handler.c index b8c5bfc04..ac5db73b4 100644 --- a/src/imap/ngx_imap_handler.c +++ b/src/imap/ngx_imap_handler.c @@ -355,9 +355,9 @@ ngx_imap_auth_state(ngx_event_t *rev) switch (s->command) { case NGX_IMAP_LOGIN: - if (s->args.nelts == 2) { + arg = s->args.elts; - arg = s->args.elts; + if (s->args.nelts == 2 && arg[0].len) { s->login.len = arg[0].len; s->login.data = ngx_palloc(c->pool, s->login.len); -- cgit v1.2.3