summaryrefslogtreecommitdiffstats
path: root/src/providers
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2011-07-01 22:52:19 +0200
committerStephen Gallagher <sgallagh@redhat.com>2011-07-13 08:24:08 -0400
commit3ae08cdd894f777aff604a906a61fb76a310b27f (patch)
treee3fa4d56b750fe6f4fcb8a2fb1ffbba06afb3707 /src/providers
parent7e2de117961fe247d8aa16af2ab762990965c239 (diff)
downloadsssd-3ae08cdd894f777aff604a906a61fb76a310b27f.tar.gz
sssd-3ae08cdd894f777aff604a906a61fb76a310b27f.tar.xz
sssd-3ae08cdd894f777aff604a906a61fb76a310b27f.zip
Remove unused krb5_service structure member
Diffstat (limited to 'src/providers')
-rw-r--r--src/providers/ipa/ipa_common.c2
-rw-r--r--src/providers/krb5/krb5_common.c5
-rw-r--r--src/providers/krb5/krb5_common.h1
3 files changed, 1 insertions, 7 deletions
diff --git a/src/providers/ipa/ipa_common.c b/src/providers/ipa/ipa_common.c
index 8f4eeb6be..0adfd9425 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 2a3e7c210..d8e4a7bc9 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 d1a90c857..670fd1a51 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;
};