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:
a5bcb29
)
Fix sending bulk data starting with a newline.
author
Guus Sliepen
<guus@tinc-vpn.org>
Tue, 22 Oct 2013 19:28:44 +0000
(21:28 +0200)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Tue, 22 Oct 2013 19:30:17 +0000
(21:30 +0200)
src/sptps_test.c
patch
|
blob
|
history
diff --git
a/src/sptps_test.c
b/src/sptps_test.c
index 1815fb72b6de81e11729110b9fcd559aa59b0fee..44cdeb73b64132ecbc77a503fb8b1823538f4a05 100644
(file)
--- a/
src/sptps_test.c
+++ b/
src/sptps_test.c
@@
-283,7
+283,7
@@
int main(int argc, char *argv[]) {
if(len > 1)
sptps_send_record(&s, 0, buf, len);
} else
- if(!sptps_send_record(&s, buf[0] == '!' ? 1 : 0, buf,
buf[0] == '\n'
? 0 : buf[0] == '*' ? sizeof buf : len))
+ if(!sptps_send_record(&s, buf[0] == '!' ? 1 : 0, buf,
(len == 1 && buf[0] == '\n')
? 0 : buf[0] == '*' ? sizeof buf : len))
return 1;
}