* utils/mountd/auth.c (auth_authenticate_internal): Make sure a
non-NULL hostent is always returned.
+2000-09-26 H.J. Lu <hjl@lucon.org>
+
+ * utils/mountd/auth.c (auth_authenticate_internal): Make sure a
+ non-NULL hostent is always returned.
+
2000-09-11 Ion Badulescu <ionut@moisil.dev.hydraweb.com>
* etc/redhat/nfslock.init: don't kill lockd processes that do not
AF_INET);
if (!(*hpp)) {
*error = no_entry;
+ *hpp = get_hostent((const char *)&addr, sizeof(addr), AF_INET);
return NULL;
} else {
/* must make sure the hostent is authorative. */
struct hostent *forward = NULL;
char *tmpname;
+ *hpp = hostent_dup (*hpp);
tmpname = xstrdup((*hpp)->h_name);
if (tmpname) {
forward = gethostbyname(tmpname);
if (!*sp) {
/* it was a FAKE */
*error = faked_hostent;
- *hpp = hostent_dup (*hpp);
return NULL;
}
+ free (*hpp);
*hpp = hostent_dup (forward);
}
else {
/* never heard of it. misconfigured DNS? */
*error = no_forward_dns;
- *hpp = hostent_dup (*hpp);
return NULL;
}
}