Changeset View
Changeset View
Standalone View
Standalone View
cddl/contrib/opensolaris/lib/libzfs/common/libzfs_sendrecv.c
Show First 20 Lines • Show All 1,556 Lines • ▼ Show 20 Lines | if (cksum.zc_word[0] != checksum) { | ||||
zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, | zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, | ||||
"resume token is corrupt (incorrect checksum)")); | "resume token is corrupt (incorrect checksum)")); | ||||
return (NULL); | return (NULL); | ||||
} | } | ||||
/* uncompress */ | /* uncompress */ | ||||
void *packed = zfs_alloc(hdl, packed_len); | void *packed = zfs_alloc(hdl, packed_len); | ||||
uLongf packed_len_long = packed_len; | uLongf packed_len_long = packed_len; | ||||
if (uncompress(packed, &packed_len_long, compressed, len) != Z_OK || | if (zmod_uncompress(packed, &packed_len_long, compressed, len) != Z_OK || | ||||
packed_len_long != packed_len) { | packed_len_long != packed_len) { | ||||
free(packed); | free(packed); | ||||
free(compressed); | free(compressed); | ||||
zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, | zfs_error_aux(hdl, dgettext(TEXT_DOMAIN, | ||||
"resume token is corrupt (decompression failed)")); | "resume token is corrupt (decompression failed)")); | ||||
return (NULL); | return (NULL); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 2,254 Lines • Show Last 20 Lines |