comparison src/mail/ngx_mail_auth_http_module.c @ 2061:b0a1c84725cf

change useless ngx_pcalloc() to ngx_pnalloc()
author Igor Sysoev <igor@sysoev.ru>
date Mon, 23 Jun 2008 12:27:03 +0000
parents 2a92804f4109
children 8156bc03982a
comparison
equal deleted inserted replaced
2060:7f936e479fda 2061:b0a1c84725cf
526 default: /* NGX_MAIL_SMTP_PROTOCOL */ 526 default: /* NGX_MAIL_SMTP_PROTOCOL */
527 ctx->err = ctx->errmsg; 527 ctx->err = ctx->errmsg;
528 continue; 528 continue;
529 } 529 }
530 530
531 p = ngx_pcalloc(s->connection->pool, size); 531 p = ngx_pnalloc(s->connection->pool, size);
532 if (p == NULL) { 532 if (p == NULL) {
533 ngx_close_connection(ctx->peer.connection); 533 ngx_close_connection(ctx->peer.connection);
534 ngx_destroy_pool(ctx->pool); 534 ngx_destroy_pool(ctx->pool);
535 ngx_mail_session_internal_server_error(s); 535 ngx_mail_session_internal_server_error(s);
536 return; 536 return;