Skip to content
Snippets Groups Projects
Commit cfb87774 authored by Deucе's avatar Deucе :ok_hand_tone4:
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
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment