summaryrefslogtreecommitdiff
path: root/bgpd/bgp_network.c
diff options
context:
space:
mode:
authorpaul <paul>2005-05-19 02:12:25 +0000
committerpaul <paul>2005-05-19 02:12:25 +0000
commite83e2080cecffa86267c07b46bbb5a9677b37996 (patch)
tree4523977a4fea76bdf2609ecb656a175aeaa4032f /bgpd/bgp_network.c
parent22db9dec63766cdf6dcd3ecb4b48177fb0e48143 (diff)
2005-05-19 Paul Jakma <paul@dishone.st>
* bgp_network.c: (bgp_accept) use XSTRDUP * bgpd.c: (peer_delete) XFREE the correct memtype, not free. (peer_create) use XSTRDUP * bgp_packet.c: (bgp_stream_dup) deleted, stream_dup should be used (various) update -> s/bgp_stream_dup/stream_dup
Diffstat (limited to 'bgpd/bgp_network.c')
-rw-r--r--bgpd/bgp_network.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_network.c b/bgpd/bgp_network.c
index b2708e7b..fb6b64df 100644
--- a/bgpd/bgp_network.c
+++ b/bgpd/bgp_network.c
@@ -112,7 +112,7 @@ bgp_accept (struct thread *thread)
/* Make peer's address string. */
sockunion2str (&su, buf, SU_ADDRSTRLEN);
- peer->host = strdup (buf);
+ peer->host = XSTRDUP (MTYPE_BGP_PEER_HOST, buf);
}
BGP_EVENT_ADD (peer, TCP_connection_open);