PPP: Fix LowerLayers value

This commit is contained in:
Amin Ben Romdhane 2023-05-02 19:02:22 +02:00
parent d80f1599d9
commit aba6671230

View file

@ -996,7 +996,11 @@ static int get_ppp_lower_layer(char *refparam, struct dmctx *ctx, void *data, ch
if ((*value)[0] == '\0') {
char *device = NULL;
dmuci_get_value_by_section_string(ppp->dmmap_s, "device", &device);
if (ppp->iface_s)
device = get_device(section_name(ppp->iface_s));
else
dmuci_get_value_by_section_string(ppp->dmmap_s, "device", &device);
if (DM_STRLEN(device) == 0)
return 0;