diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/nxt_string.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nxt_string.c b/src/nxt_string.c index 8ac873b1..8225cd9b 100644 --- a/src/nxt_string.c +++ b/src/nxt_string.c @@ -416,6 +416,10 @@ nxt_strvers_match(u_char *version, u_char *prefix, size_t length) { u_char next, last; + if (length == 0) { + return 1; + } + if (nxt_strncmp(version, prefix, length) == 0) { next = version[length]; |