Mercurial > hg > nginx
comparison src/mail/ngx_mail_smtp_handler.c @ 2049:2a92804f4109
*) back out r2040
*) refactor ngx_palloc()
*) introduce ngx_pnalloc()
*) additional pool blocks have smaller header
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 17 Jun 2008 15:00:30 +0000 |
parents | 4c060e30476b |
children | 8156bc03982a |
comparison
equal
deleted
inserted
replaced
2048:824615f3b4ec | 2049:2a92804f4109 |
---|---|
504 | 504 |
505 arg = s->args.elts; | 505 arg = s->args.elts; |
506 | 506 |
507 s->smtp_helo.len = arg[0].len; | 507 s->smtp_helo.len = arg[0].len; |
508 | 508 |
509 s->smtp_helo.data = ngx_palloc(c->pool, arg[0].len); | 509 s->smtp_helo.data = ngx_pnalloc(c->pool, arg[0].len); |
510 if (s->smtp_helo.data == NULL) { | 510 if (s->smtp_helo.data == NULL) { |
511 return NGX_ERROR; | 511 return NGX_ERROR; |
512 } | 512 } |
513 | 513 |
514 ngx_memcpy(s->smtp_helo.data, arg[0].data, arg[0].len); | 514 ngx_memcpy(s->smtp_helo.data, arg[0].data, arg[0].len); |