summaryrefslogtreecommitdiff
path: root/src/mail/ngx_mail_proxy_module.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mail/ngx_mail_proxy_module.c')
-rw-r--r--src/mail/ngx_mail_proxy_module.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/mail/ngx_mail_proxy_module.c b/src/mail/ngx_mail_proxy_module.c
index 168977604..a7c4b7e48 100644
--- a/src/mail/ngx_mail_proxy_module.c
+++ b/src/mail/ngx_mail_proxy_module.c
@@ -304,8 +304,7 @@ ngx_mail_proxy_pop3_handler(ngx_event_t *rev)
default:
#if (NGX_SUPPRESS_WARN)
- line.len = 0;
- line.data = NULL;
+ ngx_str_null(&line);
#endif
break;
}
@@ -439,8 +438,7 @@ ngx_mail_proxy_imap_handler(ngx_event_t *rev)
default:
#if (NGX_SUPPRESS_WARN)
- line.len = 0;
- line.data = NULL;
+ ngx_str_null(&line);
#endif
break;
}
@@ -664,8 +662,7 @@ ngx_mail_proxy_smtp_handler(ngx_event_t *rev)
default:
#if (NGX_SUPPRESS_WARN)
- line.len = 0;
- line.data = NULL;
+ ngx_str_null(&line);
#endif
break;
}
@@ -726,7 +723,7 @@ ngx_mail_proxy_read_response(ngx_mail_session_t *s, ngx_uint_t state)
b->last += n;
- if (b->last - b->pos < 5) {
+ if (b->last - b->pos < 4) {
return NGX_AGAIN;
}