]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Preinitialize values; suggested by Sebastian Krahmer and Tomas Hoger.
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Thu, 27 Feb 2014 15:49:24 +0000 (16:49 +0100)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Thu, 27 Feb 2014 15:50:46 +0000 (16:50 +0100)
lib/x509/verify.c

index 4a21c72e67c1d9b5be7e3fdd90e0f2562d677a41..a8a8e55d1e8b34474a7539d8337ab15cc529eb17 100644 (file)
@@ -118,8 +118,8 @@ check_if_ca(gnutls_x509_crt_t cert, gnutls_x509_crt_t issuer,
        gnutls_datum_t issuer_signed_data = { NULL, 0 };
        gnutls_datum_t cert_signature = { NULL, 0 };
        gnutls_datum_t issuer_signature = { NULL, 0 };
-       int pathlen, result;
-       unsigned int ca_status;
+       int pathlen = -1, result;
+       unsigned int ca_status = 0;
 
        /* Check if the issuer is the same with the
         * certificate. This is added in order for trusted