summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_fsm.c
diff options
context:
space:
mode:
Diffstat (limited to 'bgpd/bgp_fsm.c')
-rw-r--r--bgpd/bgp_fsm.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/bgpd/bgp_fsm.c b/bgpd/bgp_fsm.c
index ab4ea71d6..e669b4f9b 100644
--- a/bgpd/bgp_fsm.c
+++ b/bgpd/bgp_fsm.c
@@ -171,8 +171,7 @@ peer_xfer_conn(struct peer *from_peer)
peer->hostname = NULL;
}
- peer->hostname = XSTRDUP(MTYPE_BGP_PEER_HOST, from_peer->hostname);
- XFREE(MTYPE_BGP_PEER_HOST, from_peer->hostname);
+ peer->hostname = from_peer->hostname;
from_peer->hostname = NULL;
}
@@ -184,8 +183,7 @@ peer_xfer_conn(struct peer *from_peer)
peer->domainname= NULL;
}
- peer->domainname = XSTRDUP(MTYPE_BGP_PEER_HOST, from_peer->domainname);
- XFREE(MTYPE_BGP_PEER_HOST, from_peer->domainname);
+ peer->domainname = from_peer->domainname;
from_peer->domainname = NULL;
}