commit | 86e9a97adf1793acdf4c0b95983be72b1ab0a3dc | [log] [tgz] |
---|---|---|
author | Matt Johnston <matt@codeconstruct.com.au> | Mon Oct 28 15:06:33 2024 +0800 |
committer | Matt Johnston <matt@codeconstruct.com.au> | Thu Dec 12 11:35:39 2024 +0800 |
tree | 76d266ed8237b738b55bc0732f20c4a2ad3da8f7 | |
parent | 2f1a1f66dae8752e386d55ab25f244d88d626e8c [diff] |
core: Fix size check to match comment Change-Id: I924e5dac387c2dee078bc0fac4bdbebda242c997 Signed-off-by: Matt Johnston <matt@codeconstruct.com.au>
diff --git a/core.c b/core.c index 32cfd00..9247b53 100644 --- a/core.c +++ b/core.c
@@ -549,7 +549,7 @@ assert(bus); /* Drop packet if it was smaller than mctp hdr size */ - if (mctp_pktbuf_size(pkt) <= sizeof(struct mctp_hdr)) + if (mctp_pktbuf_size(pkt) < sizeof(struct mctp_hdr)) goto out; if (mctp->capture)