From 4509a063827a386469c318070c98915af270ee49 Mon Sep 17 00:00:00 2001 From: Shreenidhi Shedi Date: Sun, 12 Jun 2022 23:36:37 +0530 Subject: [PATCH] network: l2tp: initialize a to NULL Fixes: CID#1475788 (cherry picked from commit a4433b453218ccd5bc8c49ebbfad1df199bb8d4f) --- src/network/netdev/l2tp-tunnel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/network/netdev/l2tp-tunnel.c b/src/network/netdev/l2tp-tunnel.c index 05af5dbf89..4c0bf925ef 100644 --- a/src/network/netdev/l2tp-tunnel.c +++ b/src/network/netdev/l2tp-tunnel.c @@ -280,7 +280,7 @@ static int link_get_l2tp_local_address(Link *link, L2tpTunnel *t, union in_addr_ static int l2tp_get_local_address(NetDev *netdev, union in_addr_union *ret) { Link *link = NULL; L2tpTunnel *t; - Address *a; + Address *a = NULL; int r; assert(netdev);