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

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