]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
_gnutls13_handshake_server: corrected transition when post_handshake callback is set
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Thu, 14 Jun 2018 11:43:30 +0000 (13:43 +0200)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Fri, 15 Jun 2018 11:51:11 +0000 (11:51 +0000)
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
lib/handshake-tls13.c

index 2ebf20af5ffcd291f37cc7a993a7864e70a25e68..443f9c8f8e2b2da7d1940964ea8cbf6bbfa4a639 100644 (file)
@@ -292,13 +292,11 @@ int _gnutls13_handshake_server(gnutls_session_t session)
                    _gnutls_recv_handshake(session,
                                           GNUTLS_HANDSHAKE_CLIENT_HELLO,
                                           0, NULL);
-               STATE = STATE92;
-
                if (ret == GNUTLS_E_INT_RET_0) {
                        /* this is triggered by post_client_hello, and instructs the
                         * handshake to proceed but be put on hold */
                        ret = GNUTLS_E_INTERRUPTED;
-                       STATE = STATE99; /* hello already parsed -> move on */
+                       STATE = STATE93; /* hello already parsed -> move to next state */
                } else {
                        STATE = STATE92;
                }