summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bgpd/bgp_vty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_vty.c b/bgpd/bgp_vty.c
index 3d1fdfd38d..189b2f0ba9 100644
--- a/bgpd/bgp_vty.c
+++ b/bgpd/bgp_vty.c
@@ -7072,7 +7072,7 @@ static int bgp_clear_prefix(struct vty *vty, const char *view_name,
!= NULL) {
if (rm->p.prefixlen
== match.prefixlen) {
- SET_FLAG(rn->flags,
+ SET_FLAG(rm->flags,
BGP_NODE_USER_CLEAR);
bgp_process(bgp, rm, afi, safi);
}