commit 94b0928fbf4b7bdeeed971cce4ba130a76818572 parent d84c0ba4593baeac9edea22e68ba0bb151a199e9 Author: Christian Grothoff <christian@grothoff.org> Date: Sun, 24 Aug 2008 22:27:18 +0000 cert maybe NULL, check in correct order Diffstat:
| M | 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 @@ -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 */