summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-06-12 16:47:48 +0200
committerGitHub <noreply@github.com>2018-06-12 16:47:48 +0200
commit2a4269ccd8f96cd2ab8c0ef9e33e3878ff0eed94 (patch)
tree698d25e4fb1fab994c405ddbb6536ad18c9e2ceb
parentMerge pull request #2406 from pacovn/Coverity_1465495_Out-of-bounds_read (diff)
parenteigrpd: null return value check (Coverity 1455338) (diff)
downloadfrr-2a4269ccd8f96cd2ab8c0ef9e33e3878ff0eed94.tar.xz
frr-2a4269ccd8f96cd2ab8c0ef9e33e3878ff0eed94.zip
Merge pull request #2404 from pacovn/Coverity_1455338_Dereference_null_return_value
eigrpd: null return value check (Coverity 1455338)
-rw-r--r--eigrpd/eigrp_filter.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/eigrpd/eigrp_filter.c b/eigrpd/eigrp_filter.c
index 7a8fd027c..c1bf1647d 100644
--- a/eigrpd/eigrp_filter.c
+++ b/eigrpd/eigrp_filter.c
@@ -74,6 +74,7 @@ void eigrp_distribute_update(struct distribute *dist)
/* if no interface address is present, set list to eigrp process struct
*/
e = eigrp_lookup();
+ assert(e != NULL);
/* Check if distribute-list was set for process or interface */
if (!dist->ifname) {