cert maybe NULL, check in correct order

This commit is contained in:
Christian Grothoff
2008-08-24 22:27:18 +00:00
parent d84c0ba459
commit 94b0928fbf
+1 -1
View File
@@ -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
*/