krb5wrap: Move mask to the right position.
authorAndreas Schneider <asn@samba.org>
Wed, 12 Jun 2013 08:08:44 +0000 (10:08 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 12 Jun 2013 09:55:02 +0000 (11:55 +0200)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/krb5_wrap/krb5_samba.c

index 3a2401a9ad28ee8a700813f3f8d0e617d62ab677..024e1883b0bfd6ff14b1e7ba6c03e7bd017f43ff 100644 (file)
@@ -1484,7 +1484,6 @@ krb5_error_code kerberos_kinit_keyblock_cc(krb5_context ctx, krb5_ccache cc,
 {
        krb5_error_code code = 0;
        krb5_creds my_creds;
-       mode_t mask;
 
 #if defined(HAVE_KRB5_GET_INIT_CREDS_KEYBLOCK)
        code = krb5_get_init_creds_keyblock(ctx, &my_creds, principal,
@@ -1496,6 +1495,7 @@ krb5_error_code kerberos_kinit_keyblock_cc(krb5_context ctx, krb5_ccache cc,
        char tmp_name[sizeof(SMB_CREDS_KEYTAB)];
        krb5_keytab_entry entry;
        krb5_keytab keytab;
+       mode_t mask;
 
        memset(&entry, 0, sizeof(entry));
        entry.principal = principal;