summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sharpd/sharp_vty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sharpd/sharp_vty.c b/sharpd/sharp_vty.c
index 889643f65e..2281b3ce26 100644
--- a/sharpd/sharp_vty.c
+++ b/sharpd/sharp_vty.c
@@ -104,7 +104,7 @@ DEFPY(watch_nexthop_v6, watch_nexthop_v6_cmd,
p.family = AF_INET6;
} else {
type_import = true;
- p = *(const struct prefix *)inhop;
+ prefix_copy(&p, inhop);
}
sharp_nh_tracker_get(&p);
@@ -149,7 +149,7 @@ DEFPY(watch_nexthop_v4, watch_nexthop_v4_cmd,
}
else {
type_import = true;
- p = *(const struct prefix *)inhop;
+ prefix_copy(&p, inhop);
}
sharp_nh_tracker_get(&p);