[gnutls-devel] GnuTLS | Fix RSAES-PKCS1-v1_5 system-wide configuration (!1830)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Thu Apr 11 16:04:19 CEST 2024




Zoltán Fridrich commented on a discussion on lib/priority.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1830#note_1857553890

> -	struct ini_ctx ctx;
>  
>  	ret = gnutls_rwlock_rdlock(&system_wide_config_rwlock);
> -	if (ret < 0) {
> +	if (ret < 0)
>  		return gnutls_assert_val(ret);
> -	}
>  
>  	if (stat(system_priority_file, &sb) < 0) {
>  		_gnutls_debug_log("cfg: unable to access: %s: %d\n",
>  				  system_priority_file, errno);
> +
> +		(void)gnutls_rwlock_unlock(&system_wide_config_rwlock);
> +		ret = gnutls_rwlock_wrlock(&system_wide_config_rwlock);
> +		if (ret < 0)
> +			return gnutls_assert_val(ret);

yes, it should.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1830#note_1857553890
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/20240411/de94d96c/attachment.html>


More information about the Gnutls-devel mailing list