dnsmasq: fix ipv6 ipset bug
[openwrt/openwrt.git] / package / network / services / dnsmasq / patches / 0013-ipset-fix-ternary-order-swap.patch
1 From 46de5d4954b470db155098001cffc357b51e50f4 Mon Sep 17 00:00:00 2001
2 From: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
3 Date: Wed, 12 Dec 2018 11:35:12 +0000
4 Subject: [PATCH] ipset fix ternary order swap
5
6 Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
7 ---
8 src/ipset.c | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-)
10
11 --- a/src/ipset.c
12 +++ b/src/ipset.c
13 @@ -120,7 +120,7 @@ static int new_add_to_ipset(const char *
14 struct my_nfgenmsg *nfg;
15 struct my_nlattr *nested[2];
16 uint8_t proto;
17 - int addrsz = (af == AF_INET6) ? INADDRSZ : IN6ADDRSZ;
18 + int addrsz = (af == AF_INET6) ? IN6ADDRSZ : INADDRSZ;
19
20 if (strlen(setname) >= IPSET_MAXNAMELEN)
21 {