diff options
author | Ruslan Ermilov <ru@nginx.com> | 2016-05-23 16:37:20 +0300 |
---|---|---|
committer | Ruslan Ermilov <ru@nginx.com> | 2016-05-23 16:37:20 +0300 |
commit | fd064d3b88e59ee71aec508687403539b01d643c (patch) | |
tree | 8cec8e57171f8484d0e720b51b331e716d843a1d /src/mail/ngx_mail_core_module.c | |
parent | d650688ba5f966bd13b5449b52192b19a4715ee4 (diff) | |
download | nginx-fd064d3b88e59ee71aec508687403539b01d643c.tar.gz nginx-fd064d3b88e59ee71aec508687403539b01d643c.zip |
Introduced the ngx_sockaddr_t type.
It's properly aligned and can hold any supported sockaddr.
Diffstat (limited to 'src/mail/ngx_mail_core_module.c')
-rw-r--r-- | src/mail/ngx_mail_core_module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mail/ngx_mail_core_module.c b/src/mail/ngx_mail_core_module.c index f3852bf36..89f835d5d 100644 --- a/src/mail/ngx_mail_core_module.c +++ b/src/mail/ngx_mail_core_module.c @@ -337,7 +337,7 @@ ngx_mail_core_listen(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) ngx_memzero(ls, sizeof(ngx_mail_listen_t)); - ngx_memcpy(&ls->u.sockaddr, u.sockaddr, u.socklen); + ngx_memcpy(&ls->u.sockaddr, &u.sockaddr, u.socklen); ls->socklen = u.socklen; ls->backlog = NGX_LISTEN_BACKLOG; |