Merge pull request #18271 from cscarpitta/fix/fix_valgrind_error

staticd: Do not log uninitialized `nexthop` variable
This commit is contained in:
Christian Hopps 2025-02-27 06:35:14 -05:00 committed by GitHub
commit 3ea34a0b59
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1296,7 +1296,6 @@ int routing_control_plane_protocols_control_plane_protocol_staticd_segment_routi
switch (args->event) {
case NB_EV_VALIDATE:
zlog_info("validating nexthop %pI6", &nexthop.ipaddr_v6);
yang_dnode_get_ip(&nexthop, args->dnode, "../next-hop");
if (!IS_IPADDR_V6(&nexthop)) {
snprintf(args->errmsg, args->errmsg_len,