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:
parent
5504b58c74
commit
6cf45fd11d
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user