diff options
Diffstat (limited to 'src/input/CurlInputPlugin.cxx')
-rw-r--r-- | src/input/CurlInputPlugin.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/input/CurlInputPlugin.cxx b/src/input/CurlInputPlugin.cxx index 1b852b900..29d8266ce 100644 --- a/src/input/CurlInputPlugin.cxx +++ b/src/input/CurlInputPlugin.cxx @@ -776,6 +776,9 @@ read_from_buffer(IcyMetaDataParser &icy, std::list<CurlInputBuffer> &buffers, buffers.pop_front(); break; } + + if (length == 0) + break; } chunk = icy.Meta(buffer.Begin(), length); @@ -788,6 +791,9 @@ read_from_buffer(IcyMetaDataParser &icy, std::list<CurlInputBuffer> &buffers, buffers.pop_front(); break; } + + if (length == 0) + break; } } |