aboutsummaryrefslogtreecommitdiff
path: root/net/strongswan/patches/0901-uci-verbatim-patch-from-openwrt-package-sources.patch
blob: 4056fe3450e44944ed6a75c032cc173ea4d0d189 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From 81be4fa54760aa4fed53c6d93da443f57a66f262 Mon Sep 17 00:00:00 2001
From: Noel Kuntze <noel.kuntze@thermi.consulting>
Date: Mon, 12 Jul 2021 01:30:32 +0200
Subject: [PATCH 901/904] uci: verbatim patch from openwrt package sources

---
 src/libcharon/plugins/uci/uci_parser.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- a/src/libcharon/plugins/uci/uci_parser.c
+++ b/src/libcharon/plugins/uci/uci_parser.c
@@ -75,7 +75,7 @@ METHOD(enumerator_t, section_enumerator_
 		if (uci_lookup(this->ctx, &element, this->package,
 					   this->current->name, "name") == UCI_OK)
 		{	/* use "name" attribute as config name if available ... */
-			*value = uci_to_option(element)->value;
+			*value = uci_to_option(element)->v.string;
 		}
 		else
 		{	/* ... or the section name becomes config name */
@@ -90,7 +90,7 @@ METHOD(enumerator_t, section_enumerator_
 		if (value && uci_lookup(this->ctx, &element, this->package,
 						  this->current->name, this->keywords[i]) == UCI_OK)
 		{
-			*value = uci_to_option(element)->value;
+			*value = uci_to_option(element)->v.string;
 		}
 	}