summaryrefslogtreecommitdiffstats
path: root/support/export/rmtab.c
diff options
context:
space:
mode:
Diffstat (limited to 'support/export/rmtab.c')
-rw-r--r--support/export/rmtab.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/support/export/rmtab.c b/support/export/rmtab.c
index 0ec495c..31c0f50 100644
--- a/support/export/rmtab.c
+++ b/support/export/rmtab.c
@@ -28,17 +28,14 @@ static void
rmtab_read_wildcard(struct rmtabent *rep)
{
nfs_export *exp, *exp2;
- struct hostent *hp;
+ struct addrinfo *ai;
- hp = gethostbyname(rep->r_client);
- if (hp == NULL)
- return;
- hp = hostent_dup(hp);
- if (hp == NULL)
+ ai = host_addrinfo(rep->r_client);
+ if (ai == NULL)
return;
- exp = export_allowed(hp, rep->r_path);
- free(hp);
+ exp = export_allowed(ai, rep->r_path);
+ freeaddrinfo(ai);
if (exp == NULL)
return;