projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix compilation of UML and VDE device support.
[tinc]
/
src
/
sptps.c
diff --git
a/src/sptps.c
b/src/sptps.c
index
386b6fd
..
c22926a
100644
(file)
--- a/
src/sptps.c
+++ b/
src/sptps.c
@@
-486,6
+486,10
@@
static bool sptps_receive_data_datagram(sptps_t *s, const char *data, size_t len
if(seqno > s->inseqno)
s->inseqno = seqno + 1;
+ if(!s->inseqno)
+ s->received = 0;
+ else
+ s->received++;
// Decrypt.
cipher_set_counter(&s->incipher, &seqno, sizeof seqno);