telnet: fix option parser to not send uninitialized contents 05/278505/2
authorSeonah Moon <seonah1.moon@samsung.com>
Thu, 21 Jul 2022 08:39:19 +0000 (17:39 +0900)
committerseonah moon <seonah1.moon@samsung.com>
Thu, 21 Jul 2022 11:48:38 +0000 (11:48 +0000)
commit3466a8f6aa34ebc55130980fb2932ee46f4fab77
tree8f40010e2d005d0ae122e70a8f86784f6cd7386f
parent5cdc28e28cbcf578be1d86f302987e68991a0746
telnet: fix option parser to not send uninitialized contents

CVS-2021-22925

Reported-by: Red Hat Product Security
Bug: https://curl.se/docs/CVE-2021-22925.html

Backport of mainline commit: https://github.com/curl/curl/commit/894f6ec730597eb243618d33cc84d71add8d6a8a

Change-Id: Ib3eb9bbaaa4be7873e58a15cdf09bab4e1769e9d
lib/telnet.c