comparison src/mail/ngx_mail_handler.c @ 318:fc223117327f NGINX_0_6_3

nginx 0.6.3 *) Feature: the "proxy_store" and "fastcgi_store" directives. *) Bugfix: a segmentation fault might occur in worker process if the "auth_http_header" directive was used. Thanks to Maxim Dounin. *) Bugfix: a segmentation fault occurred in worker process if the CRAM-MD5 authentication method was used, but it was not enabled. *) Bugfix: a segmentation fault might occur in worker process when the HTTPS protocol was used in the "proxy_pass" directive. *) Bugfix: a segmentation fault might occur in worker process if the eventport method was used. *) Bugfix: the "proxy_ignore_client_abort" and "fastcgi_ignore_client_abort" directives did not work; bug appeared in 0.5.13.
author Igor Sysoev <http://sysoev.ru>
date Thu, 12 Jul 2007 00:00:00 +0400
parents 2ceaee987f37
children d16d691432c9
comparison
equal deleted inserted replaced
317:fcdf0e42c859 318:fc223117327f
706 } else if (arg[0].len == 8 706 } else if (arg[0].len == 8
707 && ngx_strncasecmp(arg[0].data, 707 && ngx_strncasecmp(arg[0].data,
708 (u_char *) "CRAM-MD5", 8) 708 (u_char *) "CRAM-MD5", 8)
709 == 0) 709 == 0)
710 { 710 {
711 if (s->args.nelts != 1) { 711 if (!(cscf->pop3_auth_methods
712 & NGX_MAIL_AUTH_CRAM_MD5_ENABLED)
713 || s->args.nelts != 1)
714 {
712 rc = NGX_MAIL_PARSE_INVALID_COMMAND; 715 rc = NGX_MAIL_PARSE_INVALID_COMMAND;
713 break; 716 break;
714 } 717 }
715 718
716 s->mail_state = ngx_pop3_auth_cram_md5; 719 s->mail_state = ngx_pop3_auth_cram_md5;
1366 } else if (arg[0].len == 8 1369 } else if (arg[0].len == 8
1367 && ngx_strncasecmp(arg[0].data, 1370 && ngx_strncasecmp(arg[0].data,
1368 (u_char *) "CRAM-MD5", 8) 1371 (u_char *) "CRAM-MD5", 8)
1369 == 0) 1372 == 0)
1370 { 1373 {
1371 if (s->args.nelts != 1) { 1374 cscf = ngx_mail_get_module_srv_conf(s,
1375 ngx_mail_core_module);
1376
1377 if (!(cscf->smtp_auth_methods
1378 & NGX_MAIL_AUTH_CRAM_MD5_ENABLED)
1379 || s->args.nelts != 1)
1380 {
1372 rc = NGX_MAIL_PARSE_INVALID_COMMAND; 1381 rc = NGX_MAIL_PARSE_INVALID_COMMAND;
1373 break; 1382 break;
1374 } 1383 }
1375 1384
1376 s->mail_state = ngx_smtp_auth_cram_md5; 1385 s->mail_state = ngx_smtp_auth_cram_md5;