]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
handshake.c: Fixed a missing goto statement
authorAjit Singh <ajeetsinghchahar2@gmail.com>
Mon, 6 Nov 2023 10:15:10 +0000 (15:45 +0530)
committerAjit Singh <ajeetsinghchahar2@gmail.com>
Mon, 6 Nov 2023 10:19:27 +0000 (15:49 +0530)
Signed-off-by: Ajit Singh <ajeetsinghchahar2@gmail.com>
lib/handshake.c

index f960cd706c8534e3934158781b7a6cbdd0b6d5ab..722307be7c60d8ae33f1a4c392fe9cd8c5dd9353 100644 (file)
@@ -1627,8 +1627,10 @@ int _gnutls_recv_handshake(gnutls_session_t session,
                {
                        /* Reference the full ClientHello in case an extension needs it */
                        ret = _gnutls_ext_set_full_client_hello(session, &hsk);
-                       if (ret < 0)
-                               return gnutls_assert_val(ret);
+                       if (ret < 0) {
+                               gnutls_assert();
+                               goto cleanup;
+                       }
 
                        ret = read_client_hello(session, hsk.data.data,
                                                hsk.data.length);