From: Andreas Schneider Date: Thu, 19 Oct 2017 15:32:15 +0000 (+0200) Subject: s4:kdc: Pass down the task to get access to model_ops for kpasswd server X-Git-Tag: tevent-0.9.34~84 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ab44be7a270e1fdd9031f0537ed0917243a3cf9a;p=thirdparty%2Fsamba.git s4:kdc: Pass down the task to get access to model_ops for kpasswd server Signed-off-by: Andreas Schneider Reviewed-by: Ralph Boehme --- diff --git a/source4/kdc/kdc-service-mit.c b/source4/kdc/kdc-service-mit.c index 53997d5473d..e5b20ffb523 100644 --- a/source4/kdc/kdc-service-mit.c +++ b/source4/kdc/kdc-service-mit.c @@ -58,7 +58,6 @@ static NTSTATUS startup_kpasswd_server(TALLOC_CTX *mem_ctx, struct loadparm_context *lp_ctx, struct interface *ifaces) { - const struct model_ops *model_ops; int num_interfaces; int i; TALLOC_CTX *tmp_ctx; @@ -92,7 +91,7 @@ static NTSTATUS startup_kpasswd_server(TALLOC_CTX *mem_ctx, for (i = 0; wcard[i] != NULL; i++) { status = kdc_add_socket(kdc, - model_ops, + kdc->task->model_ops, "kpasswd", wcard[i], kpasswd_port, @@ -116,7 +115,7 @@ static NTSTATUS startup_kpasswd_server(TALLOC_CTX *mem_ctx, const char *address = talloc_strdup(tmp_ctx, iface_list_n_ip(ifaces, i)); status = kdc_add_socket(kdc, - model_ops, + kdc->task->model_ops, "kpasswd", address, kpasswd_port,