summaryrefslogtreecommitdiffstats
path: root/pbrd
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-03-22 22:12:13 +0100
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-04-06 19:22:43 +0200
commit1c33fb1dbbaacd33fddea93a60eda539b8c53dc4 (patch)
tree9a1f9c1827747201cc7f80b3412794d4972fcd4d /pbrd
parentpbrd: If we get the same prefix safely ignore (diff)
downloadfrr-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.c3
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;