gnutls-serv --echo exits when a message is received
Description of problem:
The bug was initially reported in https://bugzilla.redhat.com/show_bug.cgi?id=1816583
When gnutls-serv
is executed with the --echo
option, it exits when a message to be echoed is received. It outputs
Memory error
Version of gnutls used:
gnutls-3.6.12
Distributor of gnutls (e.g., Ubuntu, Fedora, RHEL)
Fedora 32
How reproducible:
100%
Steps to Reproduce:
- Generate server private key and certificate
- Run the server with
--echo
option. For example:
$ gnutls-serv --echo --x509certfile=cert.pem --x509keyfile=key.pem -p 4433
- Connect using a client and send a message to be echoed. For example, run:
$ gnutls-cli --insecure localhost:4433
Type the message to be echoed.
Actual results:
Server closes connection and outputs:
Memory error
Expected results:
Server sends a copy of the received message to the client without closing the connection.