mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 13:33:15 +00:00
Merge pull request #2398 from pacovn/Coverity_1469895_Dereference_after_null_check
lib: null dereference (Coverity 1469895)
This commit is contained in:
commit
01491ab251
@ -120,9 +120,11 @@ bool vty_set_include(struct vty *vty, const char *regexp)
|
|||||||
bool ret = true;
|
bool ret = true;
|
||||||
char errbuf[256];
|
char errbuf[256];
|
||||||
|
|
||||||
if (!regexp && vty->filter) {
|
if (!regexp) {
|
||||||
regfree(&vty->include);
|
if (vty->filter) {
|
||||||
vty->filter = false;
|
regfree(&vty->include);
|
||||||
|
vty->filter = false;
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user