aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2008-08-24 22:27:18 +0000
committerChristian Grothoff <christian@grothoff.org>2008-08-24 22:27:18 +0000
commit94b0928fbf4b7bdeeed971cce4ba130a76818572 (patch)
tree9799416dda402e9a18562bb3981eed6fba95eb70
parentd84c0ba4593baeac9edea22e68ba0bb151a199e9 (diff)
downloadlibmicrohttpd-94b0928fbf4b7bdeeed971cce4ba130a76818572.tar.gz
libmicrohttpd-94b0928fbf4b7bdeeed971cce4ba130a76818572.zip
cert maybe NULL, check in correct order
-rw-r--r--src/daemon/https/tls/gnutls_sig.c2
1 files changed, 1 insertions, 1 deletions
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,
281 int ret; 281 int ret;
282 gnutls_datum_t vdata; 282 gnutls_datum_t vdata;
283 283
284 if (cert->version == 0 || cert == NULL) 284 if ( (cert == NULL) || (cert->version == 0) )
285 { /* this is the only way to check 285 { /* this is the only way to check
286 * if it is initialized 286 * if it is initialized
287 */ 287 */