Only update timestamp and targeting on higher sequence number

This commit is contained in:
Keith Winstein
2011-08-14 02:31:33 -04:00
parent ec4a75dcaf
commit ee7e9a1e2b
3 changed files with 42 additions and 34 deletions
+1 -1
View File
@@ -196,7 +196,7 @@ void Transport<MyState, RemoteState>::recv( void )
if ( !found ) {
// fprintf( stderr, "Ignoring out-of-order packet. Reference state %d has been discarded or hasn't yet been received.\n", int(inst.old_num) );
return;
return; /* this is security-sensitive and part of how we enforce idempotency */
}
/* apply diff to reference state */