diff options
Diffstat (limited to 'src/providers/krb5')
-rw-r--r-- | src/providers/krb5/krb5_common.c | 5 | ||||
-rw-r--r-- | src/providers/krb5/krb5_common.h | 1 |
2 files changed, 1 insertions, 5 deletions
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; }; |