From 79dad2d585764e55a447aed26053a882d6d8c06c Mon Sep 17 00:00:00 2001 From: Nidhin MS Date: Thu, 2 Jul 2026 15:11:22 +0000 Subject: [PATCH] mctpd: fix mctp_ctrl_validate_response size check Use strict less-than when validating the expected response size; the check should reject only sizes strictly smaller than the minimum response struct, not equal to it. Signed-off-by: Nidhin MS --- src/mctpd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mctpd.c b/src/mctpd.c index 58e5ee8..c9a41db 100644 --- a/src/mctpd.c +++ b/src/mctpd.c @@ -1675,7 +1675,7 @@ static int mctp_ctrl_validate_response(struct mctp_ctrl_cmd *cmd, { struct mctp_ctrl_resp *rsp; - if (exp_size <= sizeof(*rsp)) { + if (exp_size < sizeof(*rsp)) { warnx("invalid expected response size!"); return -EINVAL; }