diff options
author | Philippe Guibert <philippe.guibert@6wind.com> | 2018-05-03 14:11:03 +0200 |
---|---|---|
committer | Philippe Guibert <philippe.guibert@6wind.com> | 2018-05-25 15:49:38 +0200 |
commit | 8cda910629ed994a8ba0f6094427162ef8ffa98a (patch) | |
tree | e541a6ccea9b3909561119a42a26be5745b84574 /bgpd | |
parent | bgpd: traffic rate value is ignored for searching bpa (diff) | |
download | frr-8cda910629ed994a8ba0f6094427162ef8ffa98a.tar.xz frr-8cda910629ed994a8ba0f6094427162ef8ffa98a.zip |
bgpd: initialise nexthop structure, before filling in some attributes
In order to have a clean structure, a reset is done before using the
struct nexthop.
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'bgpd')
-rw-r--r-- | bgpd/bgp_pbr.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bgpd/bgp_pbr.c b/bgpd/bgp_pbr.c index 3e3f15b98..120d0b390 100644 --- a/bgpd/bgp_pbr.c +++ b/bgpd/bgp_pbr.c @@ -1220,6 +1220,7 @@ static void bgp_pbr_handle_entry(struct bgp *bgp, struct bgp_pbr_range_port *srcp = NULL, *dstp = NULL; struct bgp_pbr_range_port range; + memset(&nh, 0, sizeof(struct nexthop)); if (api->match_bitmask & PREFIX_SRC_PRESENT) src = &api->src_prefix; if (api->match_bitmask & PREFIX_DST_PRESENT) |