mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-14 17:00:18 +00:00
28 lines
794 B
Diff
28 lines
794 B
Diff
|
From 061eb8599636bb360e0b7fa5986935b86db39497 Mon Sep 17 00:00:00 2001
|
||
|
From: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
|
||
|
Date: Mon, 10 Dec 2018 10:07:33 +0000
|
||
|
Subject: [PATCH] option: fix non DHCPv6 build error
|
||
|
|
||
|
option.c: In function 'dhcp_context_free':
|
||
|
option.c:1042:15: error: 'struct dhcp_context' has no member named 'template_interface'
|
||
|
free(ctx->template_interface);
|
||
|
^~
|
||
|
|
||
|
Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
|
||
|
---
|
||
|
src/option.c | 2 ++
|
||
|
1 file changed, 2 insertions(+)
|
||
|
|
||
|
--- a/src/option.c
|
||
|
+++ b/src/option.c
|
||
|
@@ -1039,7 +1039,9 @@ static void dhcp_context_free(struct dhc
|
||
|
{
|
||
|
dhcp_netid_free(ctx->filter);
|
||
|
free(ctx->netid.net);
|
||
|
+#ifdef HAVE_DHCP6
|
||
|
free(ctx->template_interface);
|
||
|
+#endif
|
||
|
free(ctx);
|
||
|
}
|
||
|
}
|