mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2026-03-14 21:20:28 +01:00
tr181: fix segfault on random stack value
Signed-off-by: Daniel Danzberger <daniel@dd-wrt.com>
This commit is contained in:
parent
bae3028d48
commit
eee74363db
1 changed files with 3 additions and 1 deletions
|
|
@ -726,7 +726,7 @@ int browseVcfInst(struct dmctx *dmctx, DMNODE *parent_node, void *prev_data, cha
|
|||
int browseVlfInst(struct dmctx *dmctx, DMNODE *parent_node, void *prev_data, char *prev_instance)
|
||||
{
|
||||
struct uci_section *sys_log_sec, *dm_sec;
|
||||
char *instance, *last_instance, *log_file,*log_size;
|
||||
char *log_file,*log_size;
|
||||
int i = 1;
|
||||
|
||||
uci_foreach_sections("system", "system", sys_log_sec) {
|
||||
|
|
@ -746,6 +746,8 @@ int browseVlfInst(struct dmctx *dmctx, DMNODE *parent_node, void *prev_data, cha
|
|||
}
|
||||
}
|
||||
uci_path_foreach_sections(bbfdm, "dmmap", "vlf", dm_sec) {
|
||||
char *instance, *last_instance = NULL;
|
||||
|
||||
instance = handle_update_instance(1, dmctx, &last_instance, update_instance_alias_bbfdm, 3, dm_sec, "vlf_instance", "vlf_alias");
|
||||
if (DM_LINK_INST_OBJ(dmctx, parent_node, (void *)dm_sec, instance) == DM_STOP){
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue