summaryrefslogtreecommitdiffstats
path: root/eigrpd/eigrp_hello.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2019-02-11 13:16:35 +0100
committerDonald Sharp <sharpd@cumulusnetworks.com>2019-02-11 13:16:35 +0100
commitb245781a6bc53a28da5a0fc3c2a7b2d8954f0b04 (patch)
tree3967ea59f28c94c5c9eb5818c2300ed9ab8468f7 /eigrpd/eigrp_hello.c
parenteigrpd: Remove unnecessary test for pointer (diff)
downloadfrr-b245781a6bc53a28da5a0fc3c2a7b2d8954f0b04.tar.xz
frr-b245781a6bc53a28da5a0fc3c2a7b2d8954f0b04.zip
eigrp: Make the eigrp_interface have a prefix instead of a *prefix
The prefix data structure was being freed yet still needed in the future and it's a fundamental part of the eigrp_interface data structure let's keep it there instead of having it be deleted and then not. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'eigrpd/eigrp_hello.c')
-rw-r--r--eigrpd/eigrp_hello.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eigrpd/eigrp_hello.c b/eigrpd/eigrp_hello.c
index 413a35f2f..b4d850be0 100644
--- a/eigrpd/eigrp_hello.c
+++ b/eigrpd/eigrp_hello.c
@@ -248,7 +248,7 @@ static void eigrp_peer_termination_decode(struct eigrp_neighbor *nbr,
struct TLV_Peer_Termination_type *param =
(struct TLV_Peer_Termination_type *)tlv;
- uint32_t my_ip = nbr->ei->address->u.prefix4.s_addr;
+ uint32_t my_ip = nbr->ei->address.u.prefix4.s_addr;
uint32_t received_ip = param->neighbor_ip;
if (my_ip == received_ip) {