+
+/**
+ * check_default - additional checks for NULL, DUMP, GETPORT and unknown
+ * @daemon: pointer to '\0'-terminated ASCII string containing name of the
+ * daemon requesting the access check
+ * @addr: pointer to socket address containing address of caller
+ * @prog: RPC program number caller is attempting to access
+ *
+ * Returns TRUE if the caller is allowed access; otherwise FALSE is returned.
+ */
+int
+check_default(char *daemon, struct sockaddr_in *addr, u_long prog)
+{
+ haccess_t *acc = NULL;
+ int changed = check_files();
+
+ acc = haccess_lookup(addr, prog);
+ if (acc && changed == 0)
+ return (acc->access);
+
+ if (!(from_local((struct sockaddr *)addr) || good_client(daemon, addr))) {
+ logit(addr);
+ if (acc)
+ acc->access = FALSE;
+ else
+ haccess_add(addr, prog, FALSE);
+ return (FALSE);
+ }
+
+ if (acc)
+ acc->access = TRUE;
+ else
+ haccess_add(addr, prog, TRUE);
+
+ return (TRUE);
+}
+
+#endif /* HAVE_LIBWRAP */