mirror of
https://github.com/boostorg/beast.git
synced 2025-08-01 22:04:34 +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;
|
z_stream zs;
|
||||||
memset(&zs, 0, sizeof(zs));
|
memset(&zs, 0, sizeof(zs));
|
||||||
result = inflateInit2(&zs, -15);
|
result = inflateInit2(&zs, -15);
|
||||||
|
if(result != Z_OK)
|
||||||
|
throw std::logic_error{"inflateInit2 failed"};
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
zs.next_in = (Bytef*)in.data();
|
zs.next_in = (Bytef*)in.data();
|
||||||
|
Reference in New Issue
Block a user