From cfa6d7b8df1e969485f3d17e93bdd86e30b8aa1c Mon Sep 17 00:00:00 2001 From: Keith Winstein Date: Fri, 16 Sep 2011 17:35:21 -0400 Subject: [PATCH] Initialize last_instruction to try to fix assertion failure (rep by stellex) --- transportfragment.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/transportfragment.hpp b/transportfragment.hpp index 8304360..7d18008 100644 --- a/transportfragment.hpp +++ b/transportfragment.hpp @@ -64,7 +64,11 @@ namespace Network { int last_MTU; public: - Fragmenter() : next_instruction_id( 0 ), last_instruction(), last_MTU( -1 ) {} + Fragmenter() : next_instruction_id( 0 ), last_instruction(), last_MTU( -1 ) + { + last_instruction.set_old_num( -1 ); + last_instruction.set_new_num( -1 ); + } vector make_fragments( Instruction &inst, int MTU ); uint64_t last_ack_sent( void ) { return last_instruction.ack_num(); } };