1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2025-01-03 14:56:34 -05:00

Fix: Handle 0-byte feasts as no-match

This commit is contained in:
Philipp Schafft 2018-08-08 10:14:04 +00:00
parent 5504b58c74
commit 6cf45fd11d

View File

@ -82,6 +82,8 @@ static inline resourcematch_result_t match_lli(const char **string, resourcematc
errno = 0;
ret = strtoll(*string, &endptr, base);
if (endptr == *string)
return RESOURCEMATCH_MATCH;
if (errno != 0)
return RESOURCEMATCH_ERROR;