Commit cfb87774 authored by Deucе's avatar Deucе 👌🏾
Browse files

Fix outgoing telnet expension

This is what was breaking uploads via telnet.  Not only was it sending
the unexpanded buffer, it was also sending the length of the expanded
buffer out of it (wandering into gibberish or at worst, outside of the
buffer).
parent c3b82708
......@@ -326,8 +326,9 @@ int conn_send(const void *vbuffer, size_t buflen, unsigned int timeout)
pthread_mutex_lock(&(conn_outbuf.mutex));
found=conn_buf_wait_free(&conn_outbuf, obuflen, timeout);
if(found)
found=conn_buf_put(&conn_outbuf, buffer, found);
if(found) {
found=conn_buf_put(&conn_outbuf, expanded, found);
}
pthread_mutex_unlock(&(conn_outbuf.mutex));
if (conn_api.tx_parse_cb != NULL) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment