[gnutls-devel] GnuTLS | Datum.c cleanup (!1002)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Fri May 24 17:09:09 CEST 2019

Tim Rühsen commented on a discussion on lib/session.c: https://gitlab.com/gnutls/gnutls/merge_requests/1002#note_174277409

>  	if (session->internals.resumption_data.data != NULL)
>  		gnutls_free(session->internals.resumption_data.data);
> -	_gnutls_set_datum(&session->internals.resumption_data, session_data, session_data_size);
> +	ret = _gnutls_set_datum(&session->internals.resumption_data, session_data, session_data_size);

The function also returns error in other cases. So I think it should really be ok return error in case of allocation failure.

Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/1002#note_174277409
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/20190524/53375dc1/attachment.html>

More information about the Gnutls-devel mailing list