mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-07-26 04:54:44 +00:00
Merge pull request #18271 from cscarpitta/fix/fix_valgrind_error
staticd: Do not log uninitialized `nexthop` variable
This commit is contained in:
commit
3ea34a0b59
@ -1296,7 +1296,6 @@ int routing_control_plane_protocols_control_plane_protocol_staticd_segment_routi
|
|||||||
|
|
||||||
switch (args->event) {
|
switch (args->event) {
|
||||||
case NB_EV_VALIDATE:
|
case NB_EV_VALIDATE:
|
||||||
zlog_info("validating nexthop %pI6", &nexthop.ipaddr_v6);
|
|
||||||
yang_dnode_get_ip(&nexthop, args->dnode, "../next-hop");
|
yang_dnode_get_ip(&nexthop, args->dnode, "../next-hop");
|
||||||
if (!IS_IPADDR_V6(&nexthop)) {
|
if (!IS_IPADDR_V6(&nexthop)) {
|
||||||
snprintf(args->errmsg, args->errmsg_len,
|
snprintf(args->errmsg, args->errmsg_len,
|
||||||
|
Loading…
Reference in New Issue
Block a user