bgpd: Remove unnecessary stream_dup calls

BGP packet handling creates a stream to handle data for an outgoing packet.
In some cases the code would create a new stream, add data, then duplicate
the stream and then free the original stream.  This change removes
the unnecessary duplication, which entails a malloc and memcpy.

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
1 file changed