]> git.ipfire.org Git - thirdparty/curl.git/commit
telnet: use dynbuf instad of malloc for escape buffer
authorDaniel Stenberg <daniel@haxx.se>
Sun, 7 Jan 2024 15:28:15 +0000 (16:28 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 9 Jan 2024 08:21:01 +0000 (09:21 +0100)
commit2959f45b7d55dadd837f5bb2859780561f687ba1
treec335811ebec219dc48535d31662d42c2f46c8ec7
parentd18811b52bb4faf1ec7e55180cf6df8274e8b233
telnet: use dynbuf instad of malloc for escape buffer

Previously, send_telnet_data() would malloc + free a buffer every time
for escaping IAC codes. Now, it reuses a dynbuf for this purpose.

Closes #12652
lib/telnet.c