ref: 19b32abcee00e808e67e1fa8585f1ede3ae6c19e
parent: f39e4fcb705e5556af10bbc380d60c569b2308bf
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Tue Apr 2 13:32:34 EDT 2019
sshnet: fix write count for ctl message writes
--- a/sys/src/cmd/sshnet.c
+++ b/sys/src/cmd/sshnet.c
@@ -782,6 +782,7 @@
int nf;
s = emalloc9p(r->ifcall.count+1);
+ r->ofcall.count = r->ifcall.count;
memmove(s, r->ifcall.data, r->ifcall.count);
s[r->ifcall.count] = '\0';
@@ -788,7 +789,6 @@
nf = tokenize(s, f, 3);
if(nf == 0){free(s);
- r->ofcall.count = r->ifcall.count;
respond(r, nil);
return;
}
@@ -799,7 +799,6 @@
if(nf != 1)
goto Badarg;
teardownclient(c);
- r->ofcall.count = r->ifcall.count;
respond(r, nil);
}else if(strcmp(f[0], "connect") == 0){if(c->state != Closed)
--
⑨