mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-10-01 04:03:18 +03:00
cert maybe NULL, check in correct order
This commit is contained in:
1 parent
d84c0ba459
commit
94b0928fbf
1 file changed
+1
-1
@@ -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