diff options
Diffstat (limited to 'src/vcl')
-rw-r--r-- | src/vcl/vcl_private.c | 3 |
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); |