diff options
-rw-r--r-- | src/providers/ipa/ipa_common.c | 2 | ||||
-rw-r--r-- | src/providers/krb5/krb5_common.c | 5 | ||||
-rw-r--r-- | src/providers/krb5/krb5_common.h | 1 |
3 files changed, 1 insertions, 7 deletions
diff --git a/src/providers/ipa/ipa_common.c b/src/providers/ipa/ipa_common.c index 8f4eeb6b..0adfd942 100644 --- a/src/providers/ipa/ipa_common.c +++ b/src/providers/ipa/ipa_common.c @@ -652,8 +652,6 @@ static void ipa_resolve_callback(void *private_data, struct fo_server *server) service->sdap->uri = new_uri; talloc_zfree(service->sdap->sockaddr); service->sdap->sockaddr = talloc_steal(service, sockaddr); - talloc_zfree(service->krb5_service->address); - service->krb5_service->address = talloc_steal(service, address); safe_address = sss_escape_ip_address(tmp_ctx, srvaddr->family, diff --git a/src/providers/krb5/krb5_common.c b/src/providers/krb5/krb5_common.c index 2a3e7c21..d8e4a7bc 100644 --- a/src/providers/krb5/krb5_common.c +++ b/src/providers/krb5/krb5_common.c @@ -404,7 +404,7 @@ static void krb5_resolve_callback(void *private_data, struct fo_server *server) return; } - address = resolv_get_string_address(krb5_service, srvaddr); + address = resolv_get_string_address(tmp_ctx, srvaddr); if (address == NULL) { DEBUG(1, ("resolv_get_string_address failed.\n")); talloc_free(tmp_ctx); @@ -428,9 +428,6 @@ static void krb5_resolve_callback(void *private_data, struct fo_server *server) return; } - talloc_zfree(krb5_service->address); - krb5_service->address = address; - ret = write_krb5info_file(krb5_service->realm, safe_address, krb5_service->name); if (ret != EOK) { diff --git a/src/providers/krb5/krb5_common.h b/src/providers/krb5/krb5_common.h index d1a90c85..670fd1a5 100644 --- a/src/providers/krb5/krb5_common.h +++ b/src/providers/krb5/krb5_common.h @@ -76,7 +76,6 @@ struct tgt_times { struct krb5_service { char *name; - char *address; char *realm; }; |