diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-03-22 22:12:13 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-04-06 19:22:43 +0200 |
commit | 1c33fb1dbbaacd33fddea93a60eda539b8c53dc4 (patch) | |
tree | 9a1f9c1827747201cc7f80b3412794d4972fcd4d /pbrd | |
parent | pbrd: If we get the same prefix safely ignore (diff) | |
download | frr-1c33fb1dbbaacd33fddea93a60eda539b8c53dc4.tar.xz frr-1c33fb1dbbaacd33fddea93a60eda539b8c53dc4.zip |
pbrd: Prevent crash from partially configured interface
If an interface is in the process of coming up or
partially deconfigured, prevent pbrd from crashing
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pbrd')
-rw-r--r-- | pbrd/pbr_vty.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pbrd/pbr_vty.c b/pbrd/pbr_vty.c index c8c3ed330..02902fd00 100644 --- a/pbrd/pbr_vty.c +++ b/pbrd/pbr_vty.c @@ -494,6 +494,9 @@ DEFPY (show_pbr_interface, FOR_ALL_INTERFACES(vrf, ifp) { struct pbr_map *pbrm; + if (!ifp->info) + continue; + if (name && strcmp(ifp->name, name) != 0) continue; |