mirror of
https://dev.iopsys.eu/bbf/icwmp.git
synced 2026-01-28 01:27:16 +01:00
Ticket refs #10017 : CPE unstable connection request server
This commit is contained in:
parent
e9e55eac54
commit
f3c8d37be0
1 changed files with 6 additions and 3 deletions
|
|
@ -331,8 +331,8 @@ int get_vcf_date(char *refparam, struct dmctx *ctx, char **value)
|
|||
*value = dmstrdup(date);
|
||||
}
|
||||
}
|
||||
closedir (dir);
|
||||
}
|
||||
closedir (dir);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
@ -400,9 +400,12 @@ int check_file_dir(char *name)
|
|||
struct dirent *d_file;
|
||||
if ((dir = opendir ("/etc/config/")) != NULL) {
|
||||
while ((d_file = readdir (dir)) != NULL) {
|
||||
if(strcmp(name, d_file->d_name) == 0)
|
||||
if(strcmp(name, d_file->d_name) == 0) {
|
||||
closedir(dir);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
closedir(dir);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -420,8 +423,8 @@ inline int entry_method_device_info_vcf(struct dmctx *ctx)
|
|||
continue;
|
||||
update_section_list("dmmap","vcf", "name", 1, d_file->d_name, NULL, NULL, "backup_restore", "1");
|
||||
}
|
||||
closedir (dir);
|
||||
}
|
||||
closedir (dir);
|
||||
uci_foreach_sections("dmmap", "vcf", s) {
|
||||
dmuci_get_value_by_section_string(s, "name", &name);
|
||||
if(del_sec) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue