Initialize last_instruction to try to fix assertion failure (rep by stellex)

This commit is contained in:
Keith Winstein
2011-09-16 17:35:21 -04:00
parent be6467c335
commit cfa6d7b8df
+5 -1
View File
@@ -64,7 +64,11 @@ namespace Network {
int last_MTU; int last_MTU;
public: 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<Fragment> make_fragments( Instruction &inst, int MTU ); vector<Fragment> make_fragments( Instruction &inst, int MTU );
uint64_t last_ack_sent( void ) { return last_instruction.ack_num(); } uint64_t last_ack_sent( void ) { return last_instruction.ack_num(); }
}; };