From: Ed Borgoyn Date: Mon, 4 Apr 2016 21:45:09 +0000 (-0400) Subject: Fix unit test. X-Git-Tag: 3.0.0-233~482^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d67c285fcf5ef2a14bee903d8e6674e56f8c161d;p=thirdparty%2Fsnort3.git Fix unit test. --- diff --git a/src/decompress/file_decomp_pdf.cc b/src/decompress/file_decomp_pdf.cc index 438ddbbb1..e2b6d7cf2 100644 --- a/src/decompress/file_decomp_pdf.cc +++ b/src/decompress/file_decomp_pdf.cc @@ -1195,7 +1195,7 @@ TEST_CASE("File_Decomp_End_PDF-bad_type-error", "[file_decomp]") fd_session_p_t p_s; REQUIRE((p_s = File_Decomp_New()) != (fd_session_p_t)NULL); - p_s->Decomp_Type = FILE_COMPRESSION_TYPE_LZMA; + p_s->Decomp_State.PDF.Decomp_Type = FILE_COMPRESSION_TYPE_LZMA; p_s->Decomp_State.PDF.State = PDF_STATE_PROCESS_STREAM; REQUIRE(File_Decomp_End_PDF(p_s) == File_Decomp_Error); }