[gnutls-devel] GnuTLS | lib: mark infinite loops explicitly (!1043)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Tue Jul 9 17:01:56 CEST 2019




Tim Rühsen commented on a discussion on lib/x509/name_constraints.c: https://gitlab.com/gnutls/gnutls/merge_requests/1043#note_189926675

>  		 * not a CA. We do this check only on certificates marked as WWW server,
>  		 * because that's where the CN check is only performed. */
>  		if (_gnutls_check_key_purpose(cert, GNUTLS_KP_TLS_WWW_SERVER, 0) != 0)
>  		do {

At least it allows that `break;` instead of using an if block or a goto.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/1043#note_189926675
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/20190709/484d29bf/attachment.html>


More information about the Gnutls-devel mailing list