Use string into Descriptor Data Sub Message Element

This commit is contained in:
vemax78
2013-08-19 22:28:41 +02:00
parent d3f1f50c1f
commit e53808c0d6
3 changed files with 13 additions and 9 deletions

View File

@ -554,8 +554,7 @@ static int wtp_parsing_configuration_1_0(config_t* config) {
desc = (struct capwap_wtpdescriptor_desc_subelement*)capwap_array_get_item_pointer(g_wtp.descriptor.descsubelement, g_wtp.descriptor.descsubelement->count);
desc->vendor = (unsigned long)configVendor;
desc->type = type;
desc->length = lengthValue;
desc->data = (uint8_t*)capwap_clone((void*)configValue, lengthValue);
desc->data = (uint8_t*)capwap_duplicate_string(configValue);
} else {
capwap_logging_error("Invalid configuration file, application.descriptor.info.value string length exceeded");
return 0;