aboutsummaryrefslogtreecommitdiff
path: root/src/liblzma/common/stream_decoder.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/liblzma/common/stream_decoder.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/liblzma/common/stream_decoder.c b/src/liblzma/common/stream_decoder.c
index 884c4e9d..5360d87c 100644
--- a/src/liblzma/common/stream_decoder.c
+++ b/src/liblzma/common/stream_decoder.c
@@ -294,9 +294,8 @@ stream_decode(lzma_coder *coder, lzma_allocator *allocator,
// Compare that the Stream Flags fields are identical in
// both Stream Header and Stream Footer.
- if (!lzma_stream_flags_equal(&coder->stream_flags,
- &footer_flags))
- return LZMA_DATA_ERROR;
+ return_if_error(lzma_stream_flags_compare(
+ &coder->stream_flags, &footer_flags));
if (!coder->concatenated)
return LZMA_STREAM_END;