Fix uninit read in sslapitest
authorMatt Caswell <matt@openssl.org>
Thu, 25 Aug 2016 14:58:53 +0000 (15:58 +0100)
committerMatt Caswell <matt@openssl.org>
Thu, 25 Aug 2016 14:58:53 +0000 (15:58 +0100)
msan detected an uninit read.

Reviewed-by: Richard Levitte <levitte@openssl.org>
test/sslapitest.c

index cc790a057c14a57a03f74c2f638d4acd74f40c91..b190145159517c96aa273f69ac97abc7291a458c 100644 (file)
@@ -467,6 +467,7 @@ static SSL_BIO_TEST_FIXTURE ssl_bio_set_up(const char *const test_case_name)
 
     fixture.test_case_name = test_case_name;
     fixture.pop_ssl = 0;
 
     fixture.test_case_name = test_case_name;
     fixture.pop_ssl = 0;
+    fixture.change_bio = NO_BIO_CHANGE;
 
     return fixture;
 }
 
     return fixture;
 }