File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -10472,13 +10472,13 @@ TEST(SSLTest, IntermittentEmptyRead) {
1047210472  //  Create a fake read BIO that returns 0 on read to simulate empty read
1047310473  bssl::UniquePtr<BIO_METHOD> method (BIO_meth_new (0 , nullptr ));
1047410474  ASSERT_TRUE (method);
10475-   BIO_meth_set_create (method.get (), [](BIO *b) -> int  {
10475+   ASSERT_TRUE ( BIO_meth_set_create (method.get (), [](BIO *b) -> int  {
1047610476    BIO_set_init (b, 1 );
1047710477    return  1 ;
10478-   });
10479-   BIO_meth_set_read (method.get (), [](BIO *, char  *, int ) -> int  {
10478+   })) ;
10479+   ASSERT_TRUE ( BIO_meth_set_read (method.get (), [](BIO *, char  *, int ) -> int  {
1048010480    return  0 ;
10481-   });
10481+   })) ;
1048210482  bssl::UniquePtr<BIO> rbio_empty (BIO_new (method.get ()));
1048310483  ASSERT_TRUE (rbio_empty);
1048410484  BIO_set_flags (rbio_empty.get (), BIO_FLAGS_READ);
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments