set bio flag obviously

fix nightly Qt test
This commit is contained in:
Hideki Miyazaki
2022-03-04 19:43:32 +09:00
parent 9be0633ce3
commit a572c19268
2 changed files with 45 additions and 1 deletions

View File

@@ -17568,7 +17568,12 @@ int wolfSSL_set_compression(WOLFSSL* ssl)
wolfSSL_BIO_free(ssl->biord);
ssl->biord = NULL;
}
/* set flag obviously */
if (rd && !(rd->flags & WOLFSSL_BIO_FLAG_READ))
rd->flags |= WOLFSSL_BIO_FLAG_READ;
if (wr && !(wr->flags & WOLFSSL_BIO_FLAG_WRITE))
wr->flags |= WOLFSSL_BIO_FLAG_WRITE;
ssl->biord = rd;
ssl->biowr = wr;