diff options
author | Quentin Young <qlyoung@cumulusnetworks.com> | 2017-05-22 17:52:30 +0200 |
---|---|---|
committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2017-05-26 17:22:23 +0200 |
commit | c5f119c06dbf56887709912cf247cc7679ffc411 (patch) | |
tree | acf0cf6d58a18de2a2f1c34fe7aabdd3e8b320c4 /eigrpd/eigrp_fsm.c | |
parent | Merge pull request #610 from donaldsharp/rpprefixlen (diff) | |
download | frr-c5f119c06dbf56887709912cf247cc7679ffc411.tar.xz frr-c5f119c06dbf56887709912cf247cc7679ffc411.zip |
*: do not take address of packed member
May result in alignment errors on certain platforms
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'eigrpd/eigrp_fsm.c')
-rw-r--r-- | eigrpd/eigrp_fsm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/eigrpd/eigrp_fsm.c b/eigrpd/eigrp_fsm.c index ad4eb7018..44a474758 100644 --- a/eigrpd/eigrp_fsm.c +++ b/eigrpd/eigrp_fsm.c @@ -434,8 +434,8 @@ int eigrp_fsm_event_keep_state(struct eigrp_fsm_action_message *msg) if (prefix->state == EIGRP_FSM_STATE_PASSIVE) { - if (!eigrp_metrics_is_same(&prefix->reported_metric, - &((struct eigrp_neighbor_entry *) prefix->entries->head->data)->total_metric)) + if (!eigrp_metrics_is_same(prefix->reported_metric, + ((struct eigrp_neighbor_entry *) prefix->entries->head->data)->total_metric)) { prefix->rdistance = prefix->fdistance = |