Skip to content

Commit

Permalink
ospfd: Fix SA warnings in ospf_packet.c and ospf_vty.c
Browse files Browse the repository at this point in the history
    Fix SA warnings in ospf_packet.c and ospf_vty.c. The former was
    introduced by commit ed48014.

Signed-off-by: Acee <[email protected]>
  • Loading branch information
Acee committed Aug 16, 2024
1 parent fa50fde commit e42e581
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions ospfd/ospf_packet.c
Original file line number Diff line number Diff line change
Expand Up @@ -3335,7 +3335,7 @@ static int ospf_make_ls_ack(struct ospf_interface *oi,
struct ospf_lsa_list_entry *ls_ack_list_entry;
uint16_t length = OSPF_LS_ACK_MIN_SIZE;
struct ospf_lsa *lsa;
struct in_addr first_dst_addr;
struct in_addr first_dst_addr = { INADDR_ANY };

/*
* For direct LS Acks, assure the destination address doesn't
Expand All @@ -3346,8 +3346,7 @@ static int ospf_make_ls_ack(struct ospf_interface *oi,
if (ls_ack_list_first)
first_dst_addr.s_addr =
ls_ack_list_first->list_entry_dst.s_addr;
} else
first_dst_addr.s_addr = INADDR_ANY;
}

frr_each_safe (ospf_lsa_list, ls_ack_list, ls_ack_list_entry) {
lsa = ls_ack_list_entry->lsa;
Expand Down
2 changes: 1 addition & 1 deletion ospfd/ospf_vty.c
Original file line number Diff line number Diff line change
Expand Up @@ -8041,7 +8041,7 @@ static int ospf_vty_dead_interval_set(struct vty *vty, const char *interval_str,
VTY_DECLVAR_CONTEXT(interface, ifp);
uint32_t seconds;
uint8_t hellomult;
struct in_addr addr;
struct in_addr addr = { INADDR_ANY };
int ret;
struct ospf_if_params *params;
struct ospf_interface *oi;
Expand Down

0 comments on commit e42e581

Please sign in to comment.