mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-04 10:09:25 +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;
|
||||
char errbuf[256];
|
||||
|
||||
if (!regexp && vty->filter) {
|
||||
regfree(&vty->include);
|
||||
vty->filter = false;
|
||||
if (!regexp) {
|
||||
if (vty->filter) {
|
||||
regfree(&vty->include);
|
||||
vty->filter = false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user