mirror of
https://github.com/boostorg/beast.git
synced 2025-08-02 14:24:31 +02:00
Added missing error handling in deflate stream test
Signed-off-by: AeroStun <24841307+AeroStun@users.noreply.github.com>
This commit is contained in:
@@ -112,6 +112,8 @@ public:
|
||||
z_stream zs;
|
||||
memset(&zs, 0, sizeof(zs));
|
||||
result = inflateInit2(&zs, -15);
|
||||
if(result != Z_OK)
|
||||
throw std::logic_error{"inflateInit2 failed"};
|
||||
try
|
||||
{
|
||||
zs.next_in = (Bytef*)in.data();
|
||||
|
Reference in New Issue
Block a user