From 9470fc2be6468d2d7a5dca0a7761209326b35fee Mon Sep 17 00:00:00 2001 From: Ryo Suzumoto Date: Tue, 25 Jan 2022 01:29:58 +0900 Subject: [PATCH] add assertion --- TlmCmd/packet_handler.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/TlmCmd/packet_handler.c b/TlmCmd/packet_handler.c index e9e0bdd9d..d4b42e921 100644 --- a/TlmCmd/packet_handler.c +++ b/TlmCmd/packet_handler.c @@ -174,6 +174,8 @@ static PH_ACK PH_analyze_tlm(const CommonTlmPacket* packet) CCP_EXEC_STS PH_dispatch_command(const CommonCmdPacket* packet) { + if (packet == NULL) return CCP_EXEC_UNKNOWN; // FIXME: 返り値変えたい + // FIXME: CTCP, SpacePacket 整理で直す // if (CTCP_get_packet_type(packet) != CTCP_PACKET_TYPE_CMD) // {