mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-27 10:04:18 +00:00
Merge pull request #13711 from FRRouting/mergify/bp/dev/9.0/pr-13706
lib: close config files after reading (coverity) (backport #13706)
This commit is contained in:
commit
c3f7381eaf
@ -2217,6 +2217,8 @@ bool mgmt_vty_read_configs(void)
|
||||
line_num = 0;
|
||||
(void)config_from_file(vty, confp, &line_num);
|
||||
count++;
|
||||
|
||||
fclose(confp);
|
||||
}
|
||||
|
||||
snprintf(path, sizeof(path), "%s/mgmtd.conf", frr_sysconfdir);
|
||||
@ -2240,6 +2242,8 @@ bool mgmt_vty_read_configs(void)
|
||||
line_num = 0;
|
||||
(void)config_from_file(vty, confp, &line_num);
|
||||
count++;
|
||||
|
||||
fclose(confp);
|
||||
}
|
||||
|
||||
vty->pending_allowed = false;
|
||||
|
Loading…
Reference in New Issue
Block a user