Blame SOURCES/0091-ipaddress-Avoid-accessing-uninitialized-variable-lcl.patch

99be8f
From a7150dc1d46b73f65bfedd728aeca1dcf5ec20eb Mon Sep 17 00:00:00 2001
99be8f
From: Andrea Claudi <aclaudi@redhat.com>
99be8f
Date: Mon, 29 Apr 2019 20:08:07 +0200
99be8f
Subject: [PATCH] ipaddress: Avoid accessing uninitialized variable lcl
99be8f
99be8f
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1465646
99be8f
Upstream Status: iproute2.git commit d044ea3e784d1
99be8f
99be8f
commit d044ea3e784d1a4f0a61f306b86ce95c9a26b0b5
99be8f
Author: Phil Sutter <phil@nwl.cc>
99be8f
Date:   Mon Aug 21 11:26:59 2017 +0200
99be8f
99be8f
    ipaddress: Avoid accessing uninitialized variable lcl
99be8f
99be8f
    If no address was given, ipaddr_modify() accesses uninitialized data
99be8f
    when assigning to req.ifa.ifa_prefixlen.
99be8f
99be8f
    Signed-off-by: Phil Sutter <phil@nwl.cc>
99be8f
---
99be8f
 ip/ipaddress.c | 2 +-
99be8f
 1 file changed, 1 insertion(+), 1 deletion(-)
99be8f
99be8f
diff --git a/ip/ipaddress.c b/ip/ipaddress.c
99be8f
index bed2d3801809b..2c27da3a1f079 100644
99be8f
--- a/ip/ipaddress.c
99be8f
+++ b/ip/ipaddress.c
99be8f
@@ -1887,7 +1887,7 @@ static int ipaddr_modify(int cmd, int flags, int argc, char **argv)
99be8f
 	char  *lcl_arg = NULL;
99be8f
 	char  *valid_lftp = NULL;
99be8f
 	char  *preferred_lftp = NULL;
99be8f
-	inet_prefix lcl;
99be8f
+	inet_prefix lcl = {};
99be8f
 	inet_prefix peer;
99be8f
 	int local_len = 0;
99be8f
 	int peer_len = 0;
99be8f
-- 
99be8f
2.20.1
99be8f