You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
1.1 KiB

  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. src/libcharon/plugins/uci/uci_parser.c | 4 ++--
  7. 1 file changed, 2 insertions(+), 2 deletions(-)
  8. --- a/src/libcharon/plugins/uci/uci_parser.c
  9. +++ b/src/libcharon/plugins/uci/uci_parser.c
  10. @@ -75,7 +75,7 @@ METHOD(enumerator_t, section_enumerator_
  11. if (uci_lookup(this->ctx, &element, this->package,
  12. this->current->name, "name") == UCI_OK)
  13. { /* use "name" attribute as config name if available ... */
  14. - *value = uci_to_option(element)->value;
  15. + *value = uci_to_option(element)->v.string;
  16. }
  17. else
  18. { /* ... or the section name becomes config name */
  19. @@ -90,7 +90,7 @@ METHOD(enumerator_t, section_enumerator_
  20. if (value && uci_lookup(this->ctx, &element, this->package,
  21. this->current->name, this->keywords[i]) == UCI_OK)
  22. {
  23. - *value = uci_to_option(element)->value;
  24. + *value = uci_to_option(element)->v.string;
  25. }
  26. }