mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-25 04:09:31 +03:00
cert maybe NULL, check in correct order
This commit is contained in:
@@ -281,7 +281,7 @@ _gnutls_verify_sig (gnutls_cert * cert,
|
||||
int ret;
|
||||
gnutls_datum_t vdata;
|
||||
|
||||
if (cert->version == 0 || cert == NULL)
|
||||
if ( (cert == NULL) || (cert->version == 0) )
|
||||
{ /* this is the only way to check
|
||||
* if it is initialized
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user