Mercurial > hg > nginx
comparison src/imap/ngx_imap_core_module.c @ 906:a0310ac2814f
rewritten upstream
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 12 Dec 2006 16:46:16 +0000 |
parents | da9c1521319d |
children |
comparison
equal
deleted
inserted
replaced
905:be52cfdb3e31 | 906:a0310ac2814f |
---|---|
539 | 539 |
540 imls = cmcf->listen.elts; | 540 imls = cmcf->listen.elts; |
541 | 541 |
542 for (i = 0; i < cmcf->listen.nelts; i++) { | 542 for (i = 0; i < cmcf->listen.nelts; i++) { |
543 | 543 |
544 if (imls[i].addr != u.addr.in_addr || imls[i].port != u.portn) { | 544 if (imls[i].addr != u.addr.in_addr || imls[i].port != u.port) { |
545 continue; | 545 continue; |
546 } | 546 } |
547 | 547 |
548 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, | 548 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, |
549 "duplicate \"%V\" address and port pair", &u.url); | 549 "duplicate \"%V\" address and port pair", &u.url); |
556 } | 556 } |
557 | 557 |
558 ngx_memzero(imls, sizeof(ngx_imap_listen_t)); | 558 ngx_memzero(imls, sizeof(ngx_imap_listen_t)); |
559 | 559 |
560 imls->addr = u.addr.in_addr; | 560 imls->addr = u.addr.in_addr; |
561 imls->port = u.portn; | 561 imls->port = u.port; |
562 imls->family = AF_INET; | 562 imls->family = AF_INET; |
563 imls->ctx = cf->ctx; | 563 imls->ctx = cf->ctx; |
564 | 564 |
565 if (cf->args->nelts == 2) { | 565 if (cf->args->nelts == 2) { |
566 return NGX_CONF_OK; | 566 return NGX_CONF_OK; |