[gnutls-devel] GnuTLS | Detect malloc failure. (!960)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Wed Mar 27 14:31:31 CET 2019




Hubert Kario started a new discussion on src/ocsptool-common.c:

>  		}
>  
>  		url = malloc(data.size + 1);
> +		if (url == NULL) {
> +		    ret = -1;

why -1 and not, say `GNUTLS_E_MEMORY_ERROR`?

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/960#note_154657815
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/20190327/e24a47cc/attachment.html>


More information about the Gnutls-devel mailing list