From: Maria Matejka Date: Wed, 22 May 2024 06:56:37 +0000 (+0200) Subject: Static: Fixed undefined nexthop padding problems X-Git-Tag: v3.0.0~209 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=492c416c0a54c9ca76c288a0d84442429ae7b3f4;p=thirdparty%2Fbird.git Static: Fixed undefined nexthop padding problems --- diff --git a/proto/static/static.c b/proto/static/static.c index aa3f7bac5..f6fb50d09 100644 --- a/proto/static/static.c +++ b/proto/static/static.c @@ -80,12 +80,10 @@ static_announce_rte(struct static_proto *p, struct static_route *r) if (!r2->active) continue; - *nh = (struct nexthop) { - .gw = r2->via, - .iface = r2->neigh->iface, - .flags = r2->onlink ? RNF_ONLINK : 0, - .weight = r2->weight, - }; + nh->gw = r2->via; + nh->iface = r2->neigh->iface; + nh->flags = r2->onlink ? RNF_ONLINK : 0; + nh->weight = r2->weight; if (r2->mls) {