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:
3a4fe10
)
Test SPTPS messages sent while key renegotation is in progress.
author
Guus Sliepen
<guus@tinc-vpn.org>
Sun, 18 Mar 2012 16:42:43 +0000
(17:42 +0100)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Sun, 18 Mar 2012 16:42:43 +0000
(17:42 +0100)
src/sptps_test.c
patch
|
blob
|
history
diff --git
a/src/sptps_test.c
b/src/sptps_test.c
index 3ee7ab69b63eedaa862bc73275637ddbd8de3da8..79a1a85d13317f2fb2e310d372252881a3990216 100644
(file)
--- a/
src/sptps_test.c
+++ b/
src/sptps_test.c
@@
-154,9
+154,11
@@
int main(int argc, char *argv[]) {
break;
if(buf[0] == '^')
sptps_send_record(&s, SPTPS_HANDSHAKE, NULL, 0);
- else if(buf[0] == '$')
+ else if(buf[0] == '$')
{
sptps_force_kex(&s);
- else
+ 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))
return 1;
}