commit | a752c3be8c2436941311788f2e7b644a2af0fd65 | [log] [tgz] |
---|---|---|
author | Donald Sharp <sharpd@cumulusnetworks.com> | Tue Aug 18 08:48:53 2015 -0400 |
committer | Paul Jakma <paul@quagga.net> | Thu Sep 24 15:26:43 2015 +0100 |
tree | 78637b4cbf2f1dbb98d0d30207ad8c252493496a | |
parent | e2a9258c16bce1b3797efb9be354d20d68236194 [diff] |
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>