Fix echo Makefile bug

This commit is contained in:
2023-01-12 11:47:48 +01:00
parent 15f400f376
commit 4814035b62
4 changed files with 9 additions and 7 deletions

View File

@ -671,7 +671,9 @@ int proxy_send(proxy_ctx_t *proxy, sock *client, unsigned long len_to_send, int
}
int proxy_dump(proxy_ctx_t *proxy, char *buf, long len) {
sock_recv(&proxy->proxy, buf, len, 0);
long ret = sock_recv(&proxy->proxy, buf, len, 0);
if (ret == -1) return -1;
buf[ret] = 0;
return 0;
}