diff --git a/bgpd/bgp_packet.c b/bgpd/bgp_packet.c index 6b116db1075d..5a4765b3a10f 100644 --- a/bgpd/bgp_packet.c +++ b/bgpd/bgp_packet.c @@ -76,6 +76,8 @@ int bgp_packet_set_marker(struct stream *s, uint8_t type) for (i = 0; i < BGP_MARKER_SIZE; i++) stream_putc(s, 0xff); + malloc(5); + /* Dummy total length. This field is should be filled in later on. */ stream_putw(s, 0);