srv_keytab: Pass krb5_context directly, it's all we use anyways.
[mat/samba.git] / source4 / dsdb / samdb / ldb_modules / update_keytab.c
index f1ec9953fb821a1b280c8f3befc56e86415662b0..f07d9b2aadf280bce36d37632798d2daa65153bf 100644 (file)
@@ -431,7 +431,7 @@ static int update_kt_prepare_commit(struct ldb_module *module)
                        }
                }
 
-               krb5_ret = smb_krb5_update_keytab(tmp_ctx, smb_krb5_context,
+               krb5_ret = smb_krb5_update_keytab(tmp_ctx, smb_krb5_context->krb5_context,
                                                  keytab_name_from_msg(tmp_ctx, ldb, p->msg),
                                                  ldb_msg_find_attr_as_string(p->msg, "samAccountName", NULL),
                                                  realm, (const char **)SPNs, num_SPNs,