s3-kerberos: use krb5 compat macros in fill_keytab_from_password()
authorSimo Sorce <idra@samba.org>
Thu, 2 Sep 2010 20:09:19 +0000 (16:09 -0400)
committerGünther Deschner <gd@samba.org>
Thu, 2 Sep 2010 20:48:09 +0000 (22:48 +0200)
This one uses the compat macro in the right way, without actually
breaking the code.

Signed-off-by: Günther Deschner <gd@samba.org>
source3/librpc/rpc/dcerpc_krb5.c

index 9e709d833486296a963f7b54b1d03221f7aae4d5..22443b63ff82ef5c2841c12b30c375c83af78caa 100644 (file)
@@ -145,7 +145,7 @@ static krb5_error_code fill_keytab_from_password(krb5_context krbctx,
 
                kt_entry.principal = princ;
                kt_entry.vno = vno;
-               kt_entry.key = *key;
+               *(KRB5_KT_KEY(&kt_entry)) = *key;
 
                ret = krb5_kt_add_entry(krbctx, keytab, &kt_entry);
                if (ret) {