summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_packet.c
diff options
context:
space:
mode:
Diffstat (limited to 'bgpd/bgp_packet.c')
-rw-r--r--bgpd/bgp_packet.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/bgpd/bgp_packet.c b/bgpd/bgp_packet.c
index f8c0f0bb..e416cd34 100644
--- a/bgpd/bgp_packet.c
+++ b/bgpd/bgp_packet.c
@@ -825,8 +825,7 @@ bgp_notify_send_with_data (struct peer *peer, u_char code, u_char sub_code,
u_char *data, size_t datalen)
{
bgp_notify notification;
- notification = bgp_notify_new(code, sub_code, datalen);
- bgp_notify_append_data(notification, data, datalen);
+ notification = bgp_notify_new_with_data(code, sub_code, data, datalen);
/* For debug */
bgp_notify_print (peer, notification, "sending");