summaryrefslogtreecommitdiff
path: root/usr.sbin/rpc.statd
diff options
context:
space:
mode:
authorAlfred Perlstein <alfred@FreeBSD.org>2002-07-11 17:44:59 +0000
committerAlfred Perlstein <alfred@FreeBSD.org>2002-07-11 17:44:59 +0000
commit7a8d51f860ec31e2d606e480f2ca1450aeb4b9f5 (patch)
treefd5956486608b9f8b81858823e4b955372cccbcf /usr.sbin/rpc.statd
parenta2015ce534d511509864a42b4b6b0bf311482f2e (diff)
downloadsrc-test2-7a8d51f860ec31e2d606e480f2ca1450aeb4b9f5.tar.gz
src-test2-7a8d51f860ec31e2d606e480f2ca1450aeb4b9f5.zip
Notes
Diffstat (limited to 'usr.sbin/rpc.statd')
-rw-r--r--usr.sbin/rpc.statd/procs.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/rpc.statd/procs.c b/usr.sbin/rpc.statd/procs.c
index bbe9d4a02f65..142040acfee1 100644
--- a/usr.sbin/rpc.statd/procs.c
+++ b/usr.sbin/rpc.statd/procs.c
@@ -101,6 +101,7 @@ int sm_check_hostname(struct svc_req *req, char *arg)
struct sm_stat_res *sm_stat_1_svc(sm_name *arg, struct svc_req *req)
{
static sm_stat_res res;
+ struct sockaddr_in *claddr;
static int err;
err = 1;
@@ -116,7 +117,9 @@ struct sm_stat_res *sm_stat_1_svc(sm_name *arg, struct svc_req *req)
res.res_stat = stat_succ;
else
{
- syslog(LOG_ERR, "invalid hostname to sm_stat: %s", arg->mon_name);
+ claddr = svc_getcaller(req->rq_xprt);
+ syslog(LOG_ERR, "invalid hostname to sm_stat from %s: %s",
+ inet_ntoa(claddr->sin_addr), arg->mon_name);
res.res_stat = stat_fail;
}
}