diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2011-06-10 14:05:45 +0200 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2011-06-15 15:56:13 -0400 |
commit | 1240496176a07e804c57d43926509d5ccbf0fc41 (patch) | |
tree | f74391b6ad92996ba24fe23e09122a7452aa2e16 /src/providers/ldap | |
parent | 3d334807f302603b81996b41f2a365ce75f36d17 (diff) | |
download | sssd-1240496176a07e804c57d43926509d5ccbf0fc41.tar.gz sssd-1240496176a07e804c57d43926509d5ccbf0fc41.tar.bz2 sssd-1240496176a07e804c57d43926509d5ccbf0fc41.zip |
Switch resolver to using resolv_hostent and honor TTL
Diffstat (limited to 'src/providers/ldap')
-rw-r--r-- | src/providers/ldap/ldap_common.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/providers/ldap/ldap_common.c b/src/providers/ldap/ldap_common.c index 453e7d76..9796204f 100644 --- a/src/providers/ldap/ldap_common.c +++ b/src/providers/ldap/ldap_common.c @@ -533,7 +533,7 @@ static void sdap_uri_callback(void *private_data, struct fo_server *server) { TALLOC_CTX *tmp_ctx = NULL; struct sdap_service *service; - struct hostent *srvaddr; + struct resolv_hostent *srvaddr; char *address; const char *safe_address; const char *tmp; @@ -571,7 +571,7 @@ static void sdap_uri_callback(void *private_data, struct fo_server *server) } safe_address = sss_ldap_escape_ip_address(tmp_ctx, - srvaddr->h_addrtype, + srvaddr->family, address); talloc_zfree(address); if (safe_address == NULL) { |