summaryrefslogtreecommitdiff
path: root/cli-agentfwd.c
diff options
context:
space:
mode:
Diffstat (limited to 'cli-agentfwd.c')
-rw-r--r--cli-agentfwd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli-agentfwd.c b/cli-agentfwd.c
index aea5e64..c9bc9db 100644
--- a/cli-agentfwd.c
+++ b/cli-agentfwd.c
@@ -155,7 +155,7 @@ static buffer * agent_request(unsigned char type, buffer *data) {
goto out;
}
- buf_resize(inbuf, readlen);
+ inbuf = buf_resize(inbuf, readlen);
buf_setpos(inbuf, 0);
ret = atomicio(read, fd, buf_getwriteptr(inbuf, readlen), readlen);
if ((size_t)ret != readlen) {