]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
fastopen: remove call to abort()
authorDaiki Ueno <ueno@gnu.org>
Tue, 16 Feb 2021 07:45:23 +0000 (08:45 +0100)
committerDaiki Ueno <ueno@gnu.org>
Wed, 17 Feb 2021 05:41:16 +0000 (06:41 +0100)
Ideally, this function should have a way to return an error, but
simply not enabling TFO wouldn't hurt.

Reported by Tim Rühsen in:
https://gitlab.com/gnutls/gnutls/-/issues/603

Signed-off-by: Daiki Ueno <ueno@gnu.org>
lib/system/fastopen.c

index bf1ee0929f45051f38ecfc41a179a34c1e53e965..26399fcef0c9d7e4a7f0a37315313695c1c8e6c9 100644 (file)
@@ -217,7 +217,7 @@ gnutls_transport_set_fastopen(gnutls_session_t session,
 {
        if (connect_addrlen > (socklen_t)sizeof(session->internals.tfo.connect_addr)) {
                gnutls_assert();
-               abort();
+               return;
        }
 
        if (session->security_parameters.entity == GNUTLS_SERVER) {