Add -Wshadow and deal with the warnings.

This commit is contained in:
Roland C. Dowdeswell
2012-02-21 11:17:55 +00:00
parent cc47c8fa7b
commit e8779d5d4a
39 changed files with 214 additions and 217 deletions

View File

@@ -381,15 +381,15 @@ _kdc_do_kx509(krb5_context context,
/* Verify that the key is encoded RSA key */
{
RSAPublicKey key;
size_t size;
RSAPublicKey rsapkey;
size_t rsapkeysize;
ret = decode_RSAPublicKey(req->pk_key.data, req->pk_key.length,
&key, &size);
&rsapkey, &rsapkeysize);
if (ret)
goto out;
free_RSAPublicKey(&key);
if (size != req->pk_key.length) {
free_RSAPublicKey(&rsapkey);
if (rsapkeysize != req->pk_key.length) {
ret = ASN1_EXTRA_DATA;
goto out;
}