aboutsummaryrefslogtreecommitdiffstats
path: root/src/vcl
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2023-07-26 11:27:33 -0700
committerFlorin Coras <fcoras@cisco.com>2023-07-26 11:28:03 -0700
commit0eff4e722c8565aebf8f004a30c73a64b0b921e4 (patch)
tree84fc064316c7db050cdb7c2e5d7f15ef440ab276 /src/vcl
parente9ea7d5216ce462481ce34e54633017fd31e70db (diff)
vcl: allow rx of zero length dgrams
Type: fix Change-Id: I438ef488357456e9415e51a17355e9eba8518808 Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vcl')
-rw-r--r--src/vcl/vcl_private.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/vcl/vcl_private.c b/src/vcl/vcl_private.c
index 059acdf97eb..4af79e9ebb0 100644
--- a/src/vcl/vcl_private.c
+++ b/src/vcl/vcl_private.c
@@ -341,7 +341,8 @@ vcl_session_read_ready (vcl_session_t * s)
if (ph.data_length + SESSION_CONN_HDR_LEN > max_deq)
return 0;
- return ph.data_length;
+ /* Allow zero legth datagrams */
+ return ph.data_length ? ph.data_length : 1;
}
return svm_fifo_max_dequeue_cons (s->rx_fifo);