abort();
}
+#ifndef NO_PERROR
/* need to override perror calls in rpc library */
void perror(const char *what)
{
syslog(LOG_ERR, "%s: %m", what);
}
+#endif
static struct pmaplist *
find_service(u_long prog, u_long vers, u_long prot)
if (!check_privileged_port(svc_getcaller(xprt),
rqstp->rq_proc,
reg.pm_prog,
- pml->pml_map.pm_port)) {
- ans = 0;
- break;
- }
+ pml->pml_map.pm_port))
+ continue;
+
fpml = (struct flagged_pml*)pml;
if (fpml->priv &&
(ntohs(svc_getcaller(xprt)->sin_port)
- >= IPPORT_RESERVED)) {
- ans = 0;
- break;
- }
+ >= IPPORT_RESERVED))
+ continue;
ans = 1;
t = (caddr_t)pml;
struct flagged_pml fpml, *fpmlp;
ep = &pmaplist;
- while ((*ep)->pml_next)
+ while (*ep)
ep = & (*ep)->pml_next;
if (store_fd < 0)