Merge pull request #16078 from ja-pa/fix-email
[feed/packages.git] / net / strongswan / patches / 0901-uci-verbatim-patch-from-openwrt-package-sources.patch
1 From 81be4fa54760aa4fed53c6d93da443f57a66f262 Mon Sep 17 00:00:00 2001
2 From: Noel Kuntze <noel.kuntze@thermi.consulting>
3 Date: Mon, 12 Jul 2021 01:30:32 +0200
4 Subject: [PATCH 901/904] uci: verbatim patch from openwrt package sources
5
6 ---
7 src/libcharon/plugins/uci/uci_parser.c | 4 ++--
8 1 file changed, 2 insertions(+), 2 deletions(-)
9
10 --- a/src/libcharon/plugins/uci/uci_parser.c
11 +++ b/src/libcharon/plugins/uci/uci_parser.c
12 @@ -75,7 +75,7 @@ METHOD(enumerator_t, section_enumerator_
13 if (uci_lookup(this->ctx, &element, this->package,
14 this->current->name, "name") == UCI_OK)
15 { /* use "name" attribute as config name if available ... */
16 - *value = uci_to_option(element)->value;
17 + *value = uci_to_option(element)->v.string;
18 }
19 else
20 { /* ... or the section name becomes config name */
21 @@ -90,7 +90,7 @@ METHOD(enumerator_t, section_enumerator_
22 if (value && uci_lookup(this->ctx, &element, this->package,
23 this->current->name, this->keywords[i]) == UCI_OK)
24 {
25 - *value = uci_to_option(element)->value;
26 + *value = uci_to_option(element)->v.string;
27 }
28 }
29