From 94b0928fbf4b7bdeeed971cce4ba130a76818572 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 24 Aug 2008 22:27:18 +0000 Subject: cert maybe NULL, check in correct order --- src/daemon/https/tls/gnutls_sig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/daemon/https/tls/gnutls_sig.c b/src/daemon/https/tls/gnutls_sig.c index 64d6c7d0..07ceb21b 100644 --- a/src/daemon/https/tls/gnutls_sig.c +++ b/src/daemon/https/tls/gnutls_sig.c @@ -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 */ -- cgit v1.2.3