projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix invitations.
[tinc]
/
src
/
invitation.c
diff --git
a/src/invitation.c
b/src/invitation.c
index
3863488
..
229c606
100644
(file)
--- a/
src/invitation.c
+++ b/
src/invitation.c
@@
-988,8
+988,14
@@
int cmd_join(int argc, char *argv[]) {
return 1;
}
- if(!sptps_receive_data(&sptps, line, len))
- return 1;
+ char *p = line;
+ while(len) {
+ int done = sptps_receive_data(&sptps, p, len);
+ if(!done)
+ return 1;
+ len -= done;
+ p += done;
+ }
}
sptps_stop(&sptps);