Signed-off-by: Joshua Rogers <MegaManSec@users.noreply.github.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/28839)
brret = BrotliEncoderCompressStream(ctx->encode.state, BROTLI_OPERATION_FINISH, &ctx->encode.avail_in,
(const uint8_t**)&ctx->encode.next_in, &ctx->encode.avail_out, &ctx->encode.next_out, NULL);
if (brret != BROTLI_TRUE) {
- ERR_raise(ERR_LIB_COMP, COMP_R_BROTLI_DECODE_ERROR);
+ ERR_raise(ERR_LIB_COMP, COMP_R_BROTLI_ENCODE_ERROR);
ERR_add_error_data(1, "brotli encoder error");
return 0;
}
/* Compress some more */
zret = ZSTD_flushStream(ctx->compress.state, &ctx->compress.outbuf);
if (ZSTD_isError(zret)) {
- ERR_raise(ERR_LIB_COMP, COMP_R_ZSTD_DECODE_ERROR);
+ ERR_raise(ERR_LIB_COMP, COMP_R_ZSTD_COMPRESS_ERROR);
ERR_add_error_data(1, ZSTD_getErrorName(zret));
return 0;
}