From 08f6b0ea56f96eac00b092c7d5e1f6486eb6f457 Mon Sep 17 00:00:00 2001 From: hjl Date: Mon, 10 Jan 2000 22:31:41 +0000 Subject: Mon Jan 10 14:26:33 2000 H.J. Lu * utils/mountd/auth.c (auth_authenticate_internal): Call xstrdup for hostname before passing it to gethostbyname. * utils/mountd/mountd.c (get_exportlist): Use xstrdup instead of strdup. --- utils/mountd/mountd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils/mountd/mountd.c') diff --git a/utils/mountd/mountd.c b/utils/mountd/mountd.c index 9f467d1..164983a 100644 --- a/utils/mountd/mountd.c +++ b/utils/mountd/mountd.c @@ -312,7 +312,7 @@ get_exportlist(void) e = (struct exportnode *) xmalloc(sizeof(*e)); e->ex_next = elist; e->ex_groups = NULL; - e->ex_dir = strdup(exp->m_export.m_path); + e->ex_dir = xstrdup(exp->m_export.m_path); elist = e; } -- cgit