diff options
author | Othmar Gsenger <otti@anytun.org> | 2007-09-10 16:26:36 +0000 |
---|---|---|
committer | Othmar Gsenger <otti@anytun.org> | 2007-09-10 16:26:36 +0000 |
commit | 18ef8f13e80edcb4f77d69148245849c4ed45800 (patch) | |
tree | 1e77fe2681b2e9f0e5950e1a7aea8b79ffdced19 /seqWindow.cpp | |
parent | tunnel type fixed (diff) |
seqwindow with 0 windows-size deactivates replay protection
Diffstat (limited to 'seqWindow.cpp')
-rw-r--r-- | seqWindow.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/seqWindow.cpp b/seqWindow.cpp index 3501959..28227d9 100644 --- a/seqWindow.cpp +++ b/seqWindow.cpp @@ -54,6 +54,8 @@ SeqWindow::SeqDeque::size_type SeqWindow::getLength(sender_id_t sender) bool SeqWindow::hasSeqNr(sender_id_t sender, seq_nr_t seq) { Lock lock(mutex_); + if (!window_size_) + return false; SenderMap::const_iterator s = sender_.find(sender); if(s == sender_.end()) return false; |