comparison src/mail/ngx_mail_auth_http_module.c @ 3269:f0d596e84634

rename ngx_peer_addr_t to ngx_addr_t
author Igor Sysoev <igor@sysoev.ru>
date Mon, 02 Nov 2009 15:14:17 +0000
parents fb4f7605505f
children a2a5812cf4f4
comparison
equal deleted inserted replaced
3268:c6a40c815d45 3269:f0d596e84634
10 #include <ngx_event_connect.h> 10 #include <ngx_event_connect.h>
11 #include <ngx_mail.h> 11 #include <ngx_mail.h>
12 12
13 13
14 typedef struct { 14 typedef struct {
15 ngx_peer_addr_t *peer; 15 ngx_addr_t *peer;
16 16
17 ngx_msec_t timeout; 17 ngx_msec_t timeout;
18 18
19 ngx_str_t host_header; 19 ngx_str_t host_header;
20 ngx_str_t uri; 20 ngx_str_t uri;
455 { 455 {
456 u_char *p; 456 u_char *p;
457 time_t timer; 457 time_t timer;
458 size_t len, size; 458 size_t len, size;
459 ngx_int_t rc, port, n; 459 ngx_int_t rc, port, n;
460 ngx_peer_addr_t *peer; 460 ngx_addr_t *peer;
461 struct sockaddr_in *sin; 461 struct sockaddr_in *sin;
462 462
463 ngx_log_debug0(NGX_LOG_DEBUG_MAIL, s->connection->log, 0, 463 ngx_log_debug0(NGX_LOG_DEBUG_MAIL, s->connection->log, 0,
464 "mail auth http process headers"); 464 "mail auth http process headers");
465 465
762 ngx_destroy_pool(ctx->pool); 762 ngx_destroy_pool(ctx->pool);
763 ngx_mail_session_internal_server_error(s); 763 ngx_mail_session_internal_server_error(s);
764 return; 764 return;
765 } 765 }
766 766
767 peer = ngx_pcalloc(s->connection->pool, sizeof(ngx_peer_addr_t)); 767 peer = ngx_pcalloc(s->connection->pool, sizeof(ngx_addr_t));
768 if (peer == NULL) { 768 if (peer == NULL) {
769 ngx_destroy_pool(ctx->pool); 769 ngx_destroy_pool(ctx->pool);
770 ngx_mail_session_internal_server_error(s); 770 ngx_mail_session_internal_server_error(s);
771 return; 771 return;
772 } 772 }