]> git.ipfire.org Git - thirdparty/openssl.git/commit
fix for sslecho in demos echoing garbage #18165
authorphilippe lhardy <pl@artisanlogiciel.net>
Mon, 25 Apr 2022 17:42:16 +0000 (19:42 +0200)
committerPauli <pauli@openssl.org>
Fri, 6 May 2022 01:16:21 +0000 (11:16 +1000)
commit3c0e8bc4a797d29b2152aebc6e687ddfa941160b
treec05384f90061de530ffc5c425dbe34995db4922a
parent50d1d92de9a4cf62723a3c1ea2f39501feea7d6e
fix for sslecho in demos echoing garbage #18165

- getline does set &txbufp content at return, make sure it can be done.
  - fixes warning 'passing argument 1 of ‘getline’ from incompatible pointer type'
- remove OPENSSL_free on non allocated fixed size array
  - fixes 'free(): invalid pointer'

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18177)
demos/sslecho/main.c