[gnutls-devel] GnuTLS | p11tool: fix admin user PIN initialization (!776)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Wed Oct 24 10:43:52 CEST 2018


Nikos Mavrogiannopoulos commented on a discussion on src/common.c:

> +	}
> +
> +	len = strlen(tmp);
> +	if (len >= max_pass_size) {
> +		gnutls_memset(tmp, 0, len);
> +		pass[0] = 0;
> +		return;
> +	}
> +
> +	strcpy(pass, tmp);
> +	gnutls_memset(tmp, 0, len);
> +
> +	return;
> +}
> +
> +/* error is an empty string */

Would the text `error is indicated via an empty string` be more clear?

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/776#note_111357352
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/20181024/435d8b0d/attachment-0001.html>


More information about the Gnutls-devel mailing list