fixed compiler warning
authorMartin Willi <martin@strongswan.org>
Tue, 16 Jun 2009 12:21:55 +0000 (14:21 +0200)
committerMartin Willi <martin@strongswan.org>
Tue, 16 Jun 2009 12:21:55 +0000 (14:21 +0200)
src/libstrongswan/plugins/gcrypt/gcrypt_rsa_private_key.c
src/libstrongswan/plugins/gcrypt/gcrypt_rsa_public_key.c

index 14a1470..611ab24 100644 (file)
@@ -577,6 +577,8 @@ static gcrypt_rsa_private_key_t *load(chunk_t blob)
        chunk_t n, e, d, u, p, q;
        gcry_error_t err;
        
+       n = e = d = u = p = q = chunk_empty;
+       
        parser = asn1_parser_create(privkeyObjects, blob);
        parser->set_flags(parser, FALSE, TRUE);
        
index 909c43c..8024f58 100644 (file)
@@ -398,6 +398,8 @@ static gcrypt_rsa_public_key_t *load(chunk_t blob)
        bool success = FALSE;
        gcry_error_t err;
        
+       n = e = chunk_empty;
+       
        parser = asn1_parser_create(pubkeyObjects, blob);
        while (parser->iterate(parser, &objectID, &object))
        {