vcl: allow rx of zero length dgrams

Type: fix

Change-Id: I438ef488357456e9415e51a17355e9eba8518808
Signed-off-by: Florin Coras <fcoras@cisco.com>
This commit is contained in:
Florin Coras
2023-07-26 11:27:33 -07:00
parent e9ea7d5216
commit 0eff4e722c

View File

@ -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);