[gnutls-devel] GnuTLS | gnutls | gnutls_session_get_desc: avoid printing a NULL value (!1038)
Development of GNU's TLS library
gnutls-devel at lists.gnutls.org
Sat Jun 29 20:36:45 CEST 2019
Nikos Mavrogiannopoulos commented on a discussion on lib/session.c: https://gitlab.com/gnutls/gnutls/merge_requests/1038#note_186716832
> return NULL;
> }
>
> - if (kx == GNUTLS_KX_ECDHE_ECDSA || kx == GNUTLS_KX_ECDHE_RSA ||
> - kx == GNUTLS_KX_ECDHE_PSK) {
> + if ((kx == GNUTLS_KX_ECDHE_ECDSA || kx == GNUTLS_KX_ECDHE_RSA ||
> + kx == GNUTLS_KX_ECDHE_PSK) && group_name) {
> if (sign_str)
> snprintf(kx_name, sizeof(kx_name), "(ECDHE-%s)-(%s)",
> group_name, sign_str);
> - else
> + else if (group_name)
Thanks, removed.
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/1038#note_186716832
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/20190629/542834f0/attachment-0001.html>
More information about the Gnutls-devel
mailing list