[gnutls-devel] GnuTLS | OSCP: Fixed check null pointer OCSP resp to *_read_value() (!963)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Fri Apr 5 11:14:10 CEST 2019




Tim Rühsen started a new discussion on lib/x509/ocsp.c:

>  	size_t t, hash_len;
>  
>  	if (resp == NULL) {
> -		ret = gnutls_assert_val(GNUTLS_E_OCSP_RESPONSE_ERROR);
> +		ret = gnutls_assert_val(GNUTLS_E_INVALID_REQUEST);

Why not just `return gnutls_assert_val(GNUTLS_E_INVALID_REQUEST);` here ?

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/963#note_157757305
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/20190405/14b62803/attachment.html>


More information about the Gnutls-devel mailing list