projects
/
oweals
/
tinc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e6b2dd
)
Fix invitations.
author
Guus Sliepen
<guus@tinc-vpn.org>
Wed, 13 May 2015 12:28:28 +0000
(14:28 +0200)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Wed, 13 May 2015 12:28:28 +0000
(14:28 +0200)
These were broken due to a change in behaviour of sptps_receive_data()
introduced in commit
d237efd325cd7bdd73f5eb111c769470238dce6e
.
src/invitation.c
patch
|
blob
|
history
diff --git
a/src/invitation.c
b/src/invitation.c
index 38634886fd098e09c8cd6bdf9a7cbcd9928060e9..229c6066309da311a2b3ee72501b6c05f9c4ebbd 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);