Fix some undefined behaviour in stack test
[openssl.git] / test / sslapitest.c
index 1b96527320c59b142901adb0e54ef4402312b095..85fcabc66c930a2f10e4c8c6c270c3023bbaeb83 100644 (file)
@@ -1764,15 +1764,6 @@ static int test_early_data_read_write(void)
         goto end;
     }
 
-    /*
-     * We expect SSL_accept() to initially block as it handles the end of early
-     * data alert
-     */
-    if (SSL_accept(serverssl) > 0) {
-        printf("Unexpected success completing server handshake\n");
-        goto end;
-    }
-
     if (SSL_accept(serverssl) <= 0) {
         printf("Unable to complete server handshake\n");
         goto end;