diff options
Diffstat (limited to 'src/core/ngx_string.c')
-rw-r--r-- | src/core/ngx_string.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/ngx_string.c b/src/core/ngx_string.c index fd115cc7e..1e6ee6404 100644 --- a/src/core/ngx_string.c +++ b/src/core/ngx_string.c @@ -88,12 +88,12 @@ ngx_int_t ngx_hextoi(u_char *line, size_t n) } if (ch >= 'A' && ch <= 'F') { - value = value * 16 + (*line - 'A'); + value = value * 16 + (ch - 'A' + 10); continue; } if (ch >= 'a' && ch <= 'f') { - value = value * 16 + (*line - 'a'); + value = value * 16 + (ch - 'a' + 10); continue; } |