[packages] add strongswan4 (closes: #2538)
[openwrt/svn-archive/archive.git] / net / strongswan4 / patches / 203-uci.patch
1 --- a/src/charon/plugins/uci/uci_parser.c
2 +++ b/src/charon/plugins/uci/uci_parser.c
3 @@ -80,7 +80,7 @@ static bool section_enumerator_enumerate
4 if (uci_lookup(this->ctx, &element, this->package,
5 this->current->name, "name") == UCI_OK)
6 { /* use "name" attribute as config name if available ... */
7 - *value = uci_to_option(element)->value;
8 + *value = uci_to_option(element)->v.string;
9 }
10 else
11 { /* ... or the section name becomes config name */
12 @@ -95,7 +95,7 @@ static bool section_enumerator_enumerate
13 if (value && uci_lookup(this->ctx, &element, this->package,
14 this->current->name, this->keywords[i]) == UCI_OK)
15 {
16 - *value = uci_to_option(element)->value;
17 + *value = uci_to_option(element)->v.string;
18 }
19 }
20 va_end(args);