mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
compression: lzxpress decompress empty string as empty string
This mirrors the behaviour of lzxpress_compress, which "encodes" an empty string as an empty string. Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
1ca4449294
commit
e36cb10b16
@ -218,6 +218,10 @@ ssize_t lzxpress_decompress(const uint8_t *input,
|
||||
uint32_t indicator, indicator_bit;
|
||||
uint32_t nibble_index;
|
||||
|
||||
if (input_size == 0) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
output_index = 0;
|
||||
input_index = 0;
|
||||
indicator = 0;
|
||||
|
@ -1 +0,0 @@
|
||||
samba4.local.compression.lzxpress_round_trip
|
Loading…
Reference in New Issue
Block a user