summaryrefslogtreecommitdiff
path: root/seqWindow.cpp
diff options
context:
space:
mode:
authorOthmar Gsenger <otti@anytun.org>2007-09-10 16:26:36 +0000
committerOthmar Gsenger <otti@anytun.org>2007-09-10 16:26:36 +0000
commit18ef8f13e80edcb4f77d69148245849c4ed45800 (patch)
tree1e77fe2681b2e9f0e5950e1a7aea8b79ffdced19 /seqWindow.cpp
parenttunnel type fixed (diff)
seqwindow with 0 windows-size deactivates replay protection
Diffstat (limited to 'seqWindow.cpp')
-rw-r--r--seqWindow.cpp2
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;