summaryrefslogtreecommitdiffstats
path: root/src/plugins/quic/quic.c
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2021-05-03 08:34:53 -0700
committerFlorin Coras <fcoras@cisco.com>2021-05-03 08:34:53 -0700
commitba9cb1ba377b2ec7b2876822d73db848e7fa6754 (patch)
tree6c6ca2d4fd145bb9f13c083f34e78a86ff9c9808 /src/plugins/quic/quic.c
parent694046cf8eef9c8ec1313ebe8327bfebc2a11522 (diff)
quic: fix coverity warning
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I277f2e9ae2b763f5833778406d11218211163e43
Diffstat (limited to 'src/plugins/quic/quic.c')
-rw-r--r--src/plugins/quic/quic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/quic/quic.c b/src/plugins/quic/quic.c
index 0cd2800728a..11c3ac2d718 100644
--- a/src/plugins/quic/quic.c
+++ b/src/plugins/quic/quic.c
@@ -646,11 +646,11 @@ static int
quic_send_datagram (session_t *udp_session, struct iovec *packet,
quicly_address_t *dest, quicly_address_t *src)
{
- u32 max_enqueue;
+ u32 max_enqueue, len;
session_dgram_hdr_t hdr;
- u32 len, ret;
svm_fifo_t *f;
transport_connection_t *tc;
+ int ret;
len = packet->iov_len;
f = udp_session->tx_fifo;