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

@@ -1497,7 +1497,7 @@ kcm_op_do_ntlm(krb5_context context,
*/
if (1 || type2.targetinfo.length == 0) {
struct ntlm_buf sessionkey;
struct ntlm_buf tmpsesskey;
if (type2.flags & NTLM_NEG_NTLM2_SESSION) {
unsigned char nonce[8];
@@ -1524,7 +1524,7 @@ kcm_op_do_ntlm(krb5_context context,
ret = heim_ntlm_build_ntlm1_master(c->nthash.data,
c->nthash.length,
&sessionkey,
&tmpsesskey,
&type3.sessionkey);
if (ret) {
if (type3.lm.data)
@@ -1534,7 +1534,7 @@ kcm_op_do_ntlm(krb5_context context,
goto error;
}
free(sessionkey.data);
free(tmpsesskey.data);
if (ret) {
if (type3.lm.data)
free(type3.lm.data);