From 03cdc97d8b83d6fef085cc86fb8e50e12ae45807 Mon Sep 17 00:00:00 2001 From: Lars Erik Wik Date: Mon, 22 Jun 2026 18:12:34 +0200 Subject: [PATCH] Added comment to explain 0 length messages Signed-off-by: Lars Erik Wik --- libcfnet/patch_stream.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libcfnet/patch_stream.c b/libcfnet/patch_stream.c index 18b467704b..c43c15102b 100644 --- a/libcfnet/patch_stream.c +++ b/libcfnet/patch_stream.c @@ -90,6 +90,8 @@ bool PatchStreamFetch(SSL *conn, char **data, size_t *len) return false; } + /* Message length can be 0 if a PDU contains only a header. Usually + * happens when sending End-of-File flag. */ if (msg_len > 0) { if (msg_len > PATCH_STREAM_MAX_SIZE - buf_len)