[PATCH] krb5wrap: Move mask to the right position.

Andrew Bartlett abartlet at samba.org
Wed Jun 12 02:41:34 MDT 2013


On Wed, 2013-06-12 at 10:08 +0200, Andreas Schneider wrote:
> Signed-off-by: Andreas Schneider <asn at samba.org>
> ---
>  lib/krb5_wrap/krb5_samba.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/lib/krb5_wrap/krb5_samba.c b/lib/krb5_wrap/krb5_samba.c
> index 3a2401a..024e188 100644
> --- a/lib/krb5_wrap/krb5_samba.c
> +++ b/lib/krb5_wrap/krb5_samba.c
> @@ -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;

Both this and the LDAP_OTHER change look good, and are in autobuild.

-- 
Andrew Bartlett                                http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org




More information about the samba-technical mailing list