igzip: Add precautionary reset hist_bits on stateless_init

The zstate.hist_bits is an option and shouldn't be set randomly by a
deflate stateless run but like level we may set anyway.

Change-Id: I37d3b51863d4697e964d45a482ddd526f40a0902
Signed-off-by: Greg Tucker <greg.b.tucker@intel.com>
This commit is contained in:
Greg Tucker 2023-03-14 16:38:51 -07:00
parent 33a2d94845
commit 9f2b68f057

View File

@ -1163,6 +1163,7 @@ void isal_deflate_stateless_init(struct isal_zstream *stream)
stream->end_of_stream = 0;
stream->flush = NO_FLUSH;
stream->gzip_flag = 0;
stream->hist_bits = 0;
stream->internal_state.has_wrap_hdr = 0;
stream->internal_state.state = ZSTATE_NEW_HDR;
return;