Skip to content

Commit

Permalink
pdu_processor: avoid freeing immutable region
Browse files Browse the repository at this point in the history
Fixes: gromox-2.18-99-g22bf8296f
  • Loading branch information
fcneuf committed Dec 12, 2023
1 parent dedf2ba commit afda2fa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions exch/http/pdu_processor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +635,8 @@ static BOOL pdu_processor_fault(DCERPC_CALL *pcall, uint32_t fault_code) try
fault->status = fault_code;
fault->pad.pb = deconst(zeros);
fault->pad.cb = sizeof(zeros);
/* Avoid non-owning pointers from being consumed by ~ncacn_packet */
auto cl_0 = make_scope_exit([&]() { *fault = {}; });

auto pblob_node = new BLOB_NODE();
pblob_node->node.pdata = pblob_node;
Expand Down

0 comments on commit afda2fa

Please sign in to comment.