Blame SOURCES/0005-libxtables-Drop-leftover-variable-in-xtables_numeric.patch
|
|
3a00e5 |
From 5432b8f6fb2c3643bd06a965ae99d52d84b4fa10 Mon Sep 17 00:00:00 2001
|
|
|
3a00e5 |
From: Phil Sutter <phil@nwl.cc>
|
|
|
3a00e5 |
Date: Fri, 13 Nov 2020 21:04:39 +0100
|
|
|
3a00e5 |
Subject: [PATCH] libxtables: Drop leftover variable in
|
|
|
3a00e5 |
xtables_numeric_to_ip6addr()
|
|
|
3a00e5 |
|
|
|
3a00e5 |
Variable 'err' was only used in removed debug code, so drop it as well.
|
|
|
3a00e5 |
|
|
|
3a00e5 |
Fixes: 7f526c9373c17 ("libxtables: xtables: remove unnecessary debug code")
|
|
|
3a00e5 |
Signed-off-by: Phil Sutter <phil@nwl.cc>
|
|
|
3a00e5 |
(cherry picked from commit 97fabae738a74bd04a7793e1199cd2b8a69122bc)
|
|
|
3a00e5 |
---
|
|
|
3a00e5 |
libxtables/xtables.c | 3 +--
|
|
|
3a00e5 |
1 file changed, 1 insertion(+), 2 deletions(-)
|
|
|
3a00e5 |
|
|
|
3a00e5 |
diff --git a/libxtables/xtables.c b/libxtables/xtables.c
|
|
|
3a00e5 |
index bc42ba8221f3a..6947441fec659 100644
|
|
|
3a00e5 |
--- a/libxtables/xtables.c
|
|
|
3a00e5 |
+++ b/libxtables/xtables.c
|
|
|
3a00e5 |
@@ -1812,9 +1812,8 @@ const char *xtables_ip6mask_to_numeric(const struct in6_addr *addrp)
|
|
|
3a00e5 |
struct in6_addr *xtables_numeric_to_ip6addr(const char *num)
|
|
|
3a00e5 |
{
|
|
|
3a00e5 |
static struct in6_addr ap;
|
|
|
3a00e5 |
- int err;
|
|
|
3a00e5 |
|
|
|
3a00e5 |
- if ((err = inet_pton(AF_INET6, num, &ap)) == 1)
|
|
|
3a00e5 |
+ if (inet_pton(AF_INET6, num, &ap) == 1)
|
|
|
3a00e5 |
return ≈
|
|
|
3a00e5 |
|
|
|
3a00e5 |
return NULL;
|
|
|
3a00e5 |
--
|
|
|
3a00e5 |
2.31.1
|
|
|
3a00e5 |
|