]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: l2tp: initialize a to NULL
authorShreenidhi Shedi <sshedi@vmware.com>
Sun, 12 Jun 2022 18:06:37 +0000 (23:36 +0530)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 12 Jun 2022 23:41:52 +0000 (08:41 +0900)
Fixes: CID#1475788
src/network/netdev/l2tp-tunnel.c

index dcb70bfef2dd161f76b20c724dc88241036b8400..c38b9dc31296b7cd2dc2a08cf218f272e69bde17 100644 (file)
@@ -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);