[gnutls-devel] GnuTLS | Remove trailing dot from hostname input (!709)

Tim Rühsen gitlab at mg.gitlab.com
Thu Jul 19 15:28:44 CEST 2018


Tim Rühsen commented on a discussion on src/socket.c:

>  	if (inet_pton(AF_INET6, hostname, buf) == 1)
>  		return;
>  
> -	*p = 0;
> +	if (p > hostname && p[-1] == '.')
> +		p[-1] = 0; // remove trailing dot on FQDN
> +	else
> +		*p = 0;

Corrected now.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/709#note_89102709
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/20180719/05691a69/attachment-0001.html>


More information about the Gnutls-devel mailing list