summaryrefslogtreecommitdiffstats
path: root/isisd
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2019-09-24 20:14:56 +0200
committerGitHub <noreply@github.com>2019-09-24 20:14:56 +0200
commitad39295aaf6f601cb0357f69fcbd1bd1bc432931 (patch)
treeedb888974736c9f33184b7a7819ab311d5f63095 /isisd
parentMerge pull request #4959 from pguibert6WIND/zebra_inform_layer (diff)
parentisisd: fix crash during candidate validation (diff)
downloadfrr-ad39295aaf6f601cb0357f69fcbd1bd1bc432931.tar.xz
frr-ad39295aaf6f601cb0357f69fcbd1bd1bc432931.zip
Merge pull request #5040 from opensourcerouting/isisd-fix-validation-crash
isisd: fix crash during candidate validation
Diffstat (limited to 'isisd')
-rw-r--r--isisd/isis_northbound.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/isisd/isis_northbound.c b/isisd/isis_northbound.c
index ccd4cfbd1..1e21efa7c 100644
--- a/isisd/isis_northbound.c
+++ b/isisd/isis_northbound.c
@@ -1559,9 +1559,9 @@ static int lib_interface_isis_create(enum nb_event event,
/* check if interface mtu is sufficient. If the area has not
* been created yet, assume default MTU for the area
*/
- ifp = nb_running_get_entry(dnode, NULL, true);
+ ifp = nb_running_get_entry(dnode, NULL, false);
/* zebra might not know yet about the MTU - nothing we can do */
- if (ifp->mtu == 0)
+ if (!ifp || ifp->mtu == 0)
break;
actual_mtu =
if_is_broadcast(ifp) ? ifp->mtu - LLC_LEN : ifp->mtu;