[gnutls-devel] GnuTLS | Fix handshake segfault if no privkey is supplied (!1657)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Fri Oct 21 01:11:41 CEST 2022




Daiki Ueno started a new discussion on lib/privkey.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1657#note_1143910158

>  {
>  	const gnutls_sign_entry_st *se;
>  
> +	if (privkey == NULL)

nit: I'd suggest `unlikely(privkey == NULL)` as it is an unusual occasion

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1657#note_1143910158
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/20221020/03deaabf/attachment-0001.html>


More information about the Gnutls-devel mailing list