[gnutls-devel] GnuTLS | tests/tls13-early-data-neg2: avoid a small memory leak (!1969)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Tue Jul 1 16:43:08 CEST 2025




Daiki Ueno started a new discussion on tests/tls13-early-data-neg2.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1969#note_2596830985

 >  					fail("client: unexpected non-zero value of max_early_data_size = %d\n",
 >  					     (int)gnutls_record_get_max_early_data_size(
 >  						     session));
 > -				if (gnutls_record_send_early_data(
 > -					    session, EARLY_MSG,
 > -					    sizeof(EARLY_MSG)) >= 0)
 > +				do {
 > +					ret = gnutls_record_send_early_data(
 > +						session, EARLY_MSG,
 > +						sizeof(EARLY_MSG));
 > +				} while (ret == GNUTLS_E_AGAIN ||

I wonder if this test could be rewritten without fork, so such check would be not necessary in the first place.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1969#note_2596830985
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20250701/abafdba3/attachment.html>


More information about the Gnutls-devel mailing list