203-uci.patch 778 B

1234567891011121314151617181920
  1. --- a/src/libcharon/plugins/uci/uci_parser.c
  2. +++ b/src/libcharon/plugins/uci/uci_parser.c
  3. @@ -78,7 +78,7 @@ METHOD(enumerator_t, section_enumerator_
  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. @@ -93,7 +93,7 @@ METHOD(enumerator_t, section_enumerator_
  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);