summaryrefslogtreecommitdiffstats
path: root/eigrpd/eigrp_structs.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-09-22 18:43:32 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-09-22 18:43:32 +0200
commit952248db6080fb3bff9ef1ee2f84af84e7c078b5 (patch)
tree78aa5fbc156434b5015bfe458cb0e6019206c4f5 /eigrpd/eigrp_structs.h
parentMerge pull request #3056 from pacovn/Coverity_1473285_Explicit_null_dereferenced (diff)
downloadfrr-952248db6080fb3bff9ef1ee2f84af84e7c078b5.tar.xz
frr-952248db6080fb3bff9ef1ee2f84af84e7c078b5.zip
eigrpd: Fix eigrp crash on shut of a interface
The eigrp interface structure was storing a pointer to the connected interface structure and on shutdown of an interface this would cause zebra to call eigrp back with a shutdown of that interface, as part of that operation the connected interface structure is being deleted, but eigrp was keeping a pointer to the connected structure. At the same time we were keeping the address of the connected structure and this is all we need, so keep a copy of that data and use that instead. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to '')
-rw-r--r--eigrpd/eigrp_structs.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/eigrpd/eigrp_structs.h b/eigrpd/eigrp_structs.h
index 95bcfe50e..ce03a21fb 100644
--- a/eigrpd/eigrp_structs.h
+++ b/eigrpd/eigrp_structs.h
@@ -178,7 +178,6 @@ struct eigrp_interface {
uint8_t type;
struct prefix *address; /* Interface prefix */
- struct connected *connected; /* Pointer to connected */
/* Neighbor information. */
struct list *nbrs; /* EIGRP Neighbor List */