Lines Matching refs:ctx
44 struct ipa_srv_plugin_ctx *ctx = NULL;
46 ctx = talloc_zero(mem_ctx, struct ipa_srv_plugin_ctx);
47 if (ctx == NULL) {
51 ctx->resolv_ctx = resolv_ctx;
53 ctx->hostname = talloc_strdup(ctx, hostname);
54 if (ctx->hostname == NULL) {
58 ctx->ipa_domain = talloc_strdup(ctx, ipa_domain);
59 if (ctx->ipa_domain == NULL) {
63 return ctx;
66 talloc_free(ctx);
94 struct ipa_srv_plugin_ctx *ctx = NULL;
108 ctx = talloc_get_type(pvt, struct ipa_srv_plugin_ctx);
109 if (ctx == NULL) {
117 backup_domain = talloc_strdup(state, ctx->ipa_domain);
124 if (strchr(ctx->hostname, '.') == NULL) {
127 ctx->hostname, backup_domain);
130 ctx->hostname);
140 subreq = fo_discover_servers_send(state, ev, ctx->resolv_ctx, service,