X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fsptps.c;h=2a298ffa70ace8b9431ae38d729d7f536df33e3b;hp=ed1d952bbb48f94ab542f57dc5f44671084bd5d2;hb=d917c8cb6b69475d568ccbe82389b9f2b3eb5e80;hpb=58f4b845b9a7d83739af77337f2ce263d8df7838 diff --git a/src/sptps.c b/src/sptps.c index ed1d952b..2a298ffa 100644 --- a/src/sptps.c +++ b/src/sptps.c @@ -508,7 +508,7 @@ bool sptps_receive_data(sptps_t *s, const char *data, size_t len) { s->buflen += toread; len -= toread; data += toread; - + // Exit early if we don't have the full length. if(s->buflen < 6) return true;