rewritten upstream
diff --git a/src/imap/ngx_imap_core_module.c b/src/imap/ngx_imap_core_module.c
index 3cd3991..99aa9cc 100644
--- a/src/imap/ngx_imap_core_module.c
+++ b/src/imap/ngx_imap_core_module.c
@@ -541,7 +541,7 @@
for (i = 0; i < cmcf->listen.nelts; i++) {
- if (imls[i].addr != u.addr.in_addr || imls[i].port != u.portn) {
+ if (imls[i].addr != u.addr.in_addr || imls[i].port != u.port) {
continue;
}
@@ -558,7 +558,7 @@
ngx_memzero(imls, sizeof(ngx_imap_listen_t));
imls->addr = u.addr.in_addr;
- imls->port = u.portn;
+ imls->port = u.port;
imls->family = AF_INET;
imls->ctx = cf->ctx;