ref: dd8af39bceb201eb68fc3276a1e12a4ebcac74c0
parent: e0bdfe1e763dba59efcaad635fe150adff5873ed
author: cinap_lenrek <[email protected]>
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)