kernel: bump 4.9 to 4.9.150
[openwrt/openwrt.git] / package / network / services / dnsmasq / patches / 0012-option-fix-non-DHCPv6-build-error.patch
1 From 061eb8599636bb360e0b7fa5986935b86db39497 Mon Sep 17 00:00:00 2001
2 From: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
3 Date: Mon, 10 Dec 2018 10:07:33 +0000
4 Subject: [PATCH] option: fix non DHCPv6 build error
5
6 option.c: In function 'dhcp_context_free':
7 option.c:1042:15: error: 'struct dhcp_context' has no member named 'template_interface'
8 free(ctx->template_interface);
9 ^~
10
11 Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
12 ---
13 src/option.c | 2 ++
14 1 file changed, 2 insertions(+)
15
16 --- a/src/option.c
17 +++ b/src/option.c
18 @@ -1039,7 +1039,9 @@ static void dhcp_context_free(struct dhc
19 {
20 dhcp_netid_free(ctx->filter);
21 free(ctx->netid.net);
22 +#ifdef HAVE_DHCP6
23 free(ctx->template_interface);
24 +#endif
25 free(ctx);
26 }
27 }