summaryrefslogtreecommitdiffstats
path: root/eigrpd/eigrp_packet.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-07-26 01:32:51 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-08-05 01:29:03 +0200
commit7ecf0a4d3740bee622a0fffaabd6e623c342b7ae (patch)
tree3601d22510ddd78814af95255b70503b80ffd56b /eigrpd/eigrp_packet.c
parenteigrpd: Fix a md5 digest issue (diff)
downloadfrr-7ecf0a4d3740bee622a0fffaabd6e623c342b7ae.tar.xz
frr-7ecf0a4d3740bee622a0fffaabd6e623c342b7ae.zip
eigrpd: Fix crash and attempt to send data
This code fixes a crash in EIGRP when on initial neighbor formation we need to send more than 1 packet of data to the nbr. I was testing this by redistributing connected and just adding a bunch of /32 address to an interface. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'eigrpd/eigrp_packet.c')
-rw-r--r--eigrpd/eigrp_packet.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/eigrpd/eigrp_packet.c b/eigrpd/eigrp_packet.c
index 5242b7c27..3befd8a11 100644
--- a/eigrpd/eigrp_packet.c
+++ b/eigrpd/eigrp_packet.c
@@ -886,6 +886,7 @@ void eigrp_packet_header_init(int type, struct eigrp_interface *ei,
{
struct eigrp_header *eigrph;
+ stream_reset(s);
eigrph = (struct eigrp_header *)STREAM_DATA(s);
eigrph->version = (u_char)EIGRP_HEADER_VERSION;