From 1c5d0b5bedf75d729c8b645486df92b00643e6b3 Mon Sep 17 00:00:00 2001 From: lixinhong Date: Mon, 18 Dec 2023 19:22:31 +0800 Subject: [PATCH] rdnss: remove unused variable Signed-off-by: lixinhong --- 0001-rdnss-remove-unused-variable.patch | 23 +++++++++++++++++++++++ ndisc6.spec | 9 ++++++++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 0001-rdnss-remove-unused-variable.patch diff --git a/0001-rdnss-remove-unused-variable.patch b/0001-rdnss-remove-unused-variable.patch new file mode 100644 index 0000000..83504fd --- /dev/null +++ b/0001-rdnss-remove-unused-variable.patch @@ -0,0 +1,23 @@ +From e4aacddc0295b3893008c76958a9a10a5cdf9cb9 Mon Sep 17 00:00:00 2001 +From: =?utf8?q?R=C3=A9mi=20Denis-Courmont?= +Date: Tue, 12 Nov 2019 17:51:48 +0200 +Subject: [PATCH] rdnss: remove unused variable + +--- + rdnss/rdnssd.c | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/rdnss/rdnssd.c b/rdnss/rdnssd.c +index 4ac8bd1..d92025c 100644 +--- a/rdnss/rdnssd.c ++++ b/rdnss/rdnssd.c +@@ -297,7 +297,6 @@ void parse_dnssl (const struct nd_opt_hdr *opt, unsigned int ifindex) + size_t nd_opt_len = opt->nd_opt_len; + uint64_t lifetime; + char *dom_list; +- size_t last_dom_len = 0; + + dnssl_opt = (struct nd_opt_dnssl *) opt; + +-- +2.39.2 diff --git a/ndisc6.spec b/ndisc6.spec index 849cec2..0733837 100644 --- a/ndisc6.spec +++ b/ndisc6.spec @@ -1,6 +1,6 @@ Name: ndisc6 Version: 1.0.4 -Release: 7 +Release: 8 Summary: IPv6 diagnostic tools License: GPLv2 or GPLv3 URL: http://www.remlab.net/ndisc6 @@ -11,6 +11,7 @@ Patch1: bugfix-add-SO_BINDTODEVICE.patch Patch2: backport-rdnssd-remove-unused-parameter.patch Patch3: 0001-Update-AUTHORS.patch Patch4: 0001-Update-NEWS.patch +Patch5: 0001-rdnss-remove-unused-variable.patch BuildRequires: gcc perl-generators @@ -50,6 +51,12 @@ It includes the follwing programs : %{_mandir}/man* %changelog +* Mon Dec 18 2023 lixinhong - 1.0.4-8 +- Type:bugfix +- CVE:NA +- SUG:restart +- DESC: rdnss: remove unused variable + * Mon Jan 9 2023 caofei - 1.0.4-7 - Type:bugfix - CVE:NA -- Gitee