Skip to content

Commit

Permalink
fixup! Back off on generating noise in the event of a PING frame
Browse files Browse the repository at this point in the history
  • Loading branch information
mattcaswell committed Oct 2, 2023
1 parent e9a412a commit 0a1effc
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions test/helpers/quictestlib.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,12 @@ static void noise_msg_callback(int write_p, int version, int content_type,
}
}

#ifndef OPENSSL_NO_SSL_TRACE
if ((noiseargs->flags & QTEST_FLAG_CLIENT_TRACE) != 0
&& !SSL_is_server(ssl))
SSL_trace(write_p, version, content_type, buf, len, ssl,
noiseargs->tracebio);
#endif
}

int qtest_create_quic_objects(OSSL_LIB_CTX *libctx, SSL_CTX *clientctx,
Expand All @@ -130,21 +132,18 @@ int qtest_create_quic_objects(OSSL_LIB_CTX *libctx, SSL_CTX *clientctx,
BIO *tmpbio = NULL;

*qtserv = NULL;
if (fault != NULL)
*fault = NULL;
if (*cssl == NULL) {
*cssl = SSL_new(clientctx);
if (!TEST_ptr(*cssl))
return 0;
}

if (fault != NULL) {
*fault = OPENSSL_zalloc(sizeof(**fault));
if (*fault == NULL)
goto err;
}

if (*cssl == NULL) {
*cssl = SSL_new(clientctx);
if (!TEST_ptr(*cssl))
return 0;
}

#ifndef OPENSSL_NO_SSL_TRACE
if ((flags & QTEST_FLAG_CLIENT_TRACE) != 0) {
tmpbio = BIO_new_fp(stdout, BIO_NOCLOSE);
Expand Down

0 comments on commit 0a1effc

Please sign in to comment.