From beadb61ae1e366ea1f7a2e53d96251ea6f40490e Mon Sep 17 00:00:00 2001
From: yinbin6 <yinbin8@huawei.com>
Date: Tue, 30 Apr 2024 10:09:18 +0800
Subject: [PATCH] memset gazelle_quintuple in vdev_reg_done

---
 src/include/lwip/priv/tcp_priv.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/include/lwip/priv/tcp_priv.h b/src/include/lwip/priv/tcp_priv.h
index 8d7b9df..7ef00fa 100644
--- a/src/include/lwip/priv/tcp_priv.h
+++ b/src/include/lwip/priv/tcp_priv.h
@@ -346,7 +346,7 @@ static inline int vdev_reg_done(enum reg_ring_type reg_type, const struct tcp_pc
 {
   LWIP_ASSERT("Invalid parameter", pcb != NULL);
 
-  struct gazelle_quintuple qtuple;
+  struct gazelle_quintuple qtuple = {0};
 
   qtuple.protocol   = IP_IS_V4_VAL(pcb->local_ip) ? GZ_ADDR_TYPE_V4 : GZ_ADDR_TYPE_V6;
   qtuple.src_ip     = *((gz_addr_t *)&pcb->local_ip);
-- 
2.33.0

