aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_parse_time.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/ngx_parse_time.c')
-rw-r--r--src/core/ngx_parse_time.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/ngx_parse_time.c b/src/core/ngx_parse_time.c
index a5c503424..232ac91dd 100644
--- a/src/core/ngx_parse_time.c
+++ b/src/core/ngx_parse_time.c
@@ -44,14 +44,15 @@ ngx_parse_http_time(u_char *value, size_t len)
}
}
- for (p++; p < end; p++)
+ for (p++; p < end; p++) {
if (*p != ' ') {
break;
}
+ }
if (end - p < 18) {
return NGX_ERROR;
- }
+ }
if (fmt != isoc) {
if (*p < '0' || *p > '9' || *(p + 1) < '0' || *(p + 1) > '9') {