[gnutls-devel] GnuTLS | gnutls_init: Always initialize *session (!1652)
Read-only notification of GnuTLS library development activities
gnutls-devel at lists.gnutls.org
Mon Oct 17 15:02:14 CEST 2022
Eric Blake commented on a discussion on lib/pkcs11_privkey.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1652#note_1138078435
> (*key)->uinfo = p11_kit_uri_new();
> if ((*key)->uinfo == NULL) {
> free(*key);
Yeah, attribute malloc (either the bare version meaning "returns an unaliased pointer" or the parameterized version meaning "the returned pointer must be passed to this dealloc function") doesn't work when _init functions aren't actually returning a pointer.
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1652#note_1138078435
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/20221017/8b8097e8/attachment.html>
More information about the Gnutls-devel
mailing list