diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2019-04-02 17:32:34 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2019-04-02 17:32:34 +0200 |
commit | dd8af39bceb201eb68fc3276a1e12a4ebcac74c0 (patch) | |
tree | c83ba695f73271f2b8f170b6ea6210e266ed7527 /sys/src/cmd/sshnet.c | |
parent | e0bdfe1e763dba59efcaad635fe150adff5873ed (diff) |
sshnet: fix write count for ctl message writes
Diffstat (limited to 'sys/src/cmd/sshnet.c')
-rwxr-xr-x | sys/src/cmd/sshnet.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/src/cmd/sshnet.c b/sys/src/cmd/sshnet.c index f427087de..5fd5a1ac7 100755 --- a/sys/src/cmd/sshnet.c +++ b/sys/src/cmd/sshnet.c @@ -782,13 +782,13 @@ ctlwrite(Req *r, Client *c) 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'; nf = tokenize(s, f, 3); if(nf == 0){ free(s); - r->ofcall.count = r->ifcall.count; respond(r, nil); return; } @@ -799,7 +799,6 @@ ctlwrite(Req *r, Client *c) 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) |