From 007255fa72ec7dd79f9aee2dab14c48e0a5e92db Mon Sep 17 00:00:00 2001 From: Amin Ben Ramdhane Date: Tue, 24 May 2022 12:59:05 +0100 Subject: [PATCH] T#7824: Allow empty value for FacilityAction parameter --- dmtree/tr104/servicesvoiceservicecallcontrol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dmtree/tr104/servicesvoiceservicecallcontrol.c b/dmtree/tr104/servicesvoiceservicecallcontrol.c index 71fd6259..2e737625 100644 --- a/dmtree/tr104/servicesvoiceservicecallcontrol.c +++ b/dmtree/tr104/servicesvoiceservicecallcontrol.c @@ -1214,7 +1214,7 @@ static int get_ServicesVoiceServiceCallControlNumberingPlanPrefixInfo_FacilityAc char *type = NULL; dmuci_get_value_by_section_string(((struct dmmap_dup *)data)->config_section, "facilityaction", &type); - if (dm_validate_string(type, -1, -1, FacilityAction, NULL)) + if (*type && dm_validate_string(type, -1, -1, FacilityAction, NULL)) dmasprintf(value, "%s%s", BBF_VENDOR_PREFIX, type); else *value = type;