Skip to content

Commit eb5d453

Browse files
committed
fix: return nullptr on invalid CheckTransactionStateRequestHeader instead of error response
1 parent 4a0e544 commit eb5d453

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

deps/rocketmq/src/ClientRemotingProcessor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ RemotingCommand* ClientRemotingProcessor::checkTransactionState(const std::strin
6565
auto* requestHeader = request->decodeCommandCustomHeader<CheckTransactionStateRequestHeader>();
6666
if (requestHeader == nullptr) {
6767
LOG_ERROR_NEW("Failed to decode CheckTransactionStateRequestHeader");
68-
return RemotingCommand::createResponseCommand(ResponseCode::SYSTEM_ERROR, "Invalid request header");
68+
return nullptr;
6969
}
7070

7171
auto requestBody = request->body();

0 commit comments

Comments
 (0)