diff options
author | alfred <alfred@FreeBSD.org> | 2002-07-11 17:11:42 +0000 |
---|---|---|
committer | alfred <alfred@FreeBSD.org> | 2002-07-11 17:11:42 +0000 |
commit | 9bbf00859f67b38524d8d38de2f0d384dfad8925 (patch) | |
tree | e8592d87fd9961d1e4a41dacd8e891e6dc075567 /usr.sbin/rpc.statd/statd.h | |
parent | d860561907f155e08d4d425c514be0103387b479 (diff) | |
download | FreeBSD-src-9bbf00859f67b38524d8d38de2f0d384dfad8925.zip FreeBSD-src-9bbf00859f67b38524d8d38de2f0d384dfad8925.tar.gz |
Do not allow unsafe characters in monitored hostnames.
This is modified version of the fix posted in the PR, I've taken Wollman's
advice and used strvis(3) to properly show invalid hostnames.
PR: bin/39815
Diffstat (limited to 'usr.sbin/rpc.statd/statd.h')
-rw-r--r-- | usr.sbin/rpc.statd/statd.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/rpc.statd/statd.h b/usr.sbin/rpc.statd/statd.h index 7bf7b1d..b3c5d41 100644 --- a/usr.sbin/rpc.statd/statd.h +++ b/usr.sbin/rpc.statd/statd.h @@ -108,3 +108,4 @@ extern HostInfo *find_host(char * /*hostname*/, int /*create*/); extern void init_file(char * /*filename*/); extern void notify_hosts(void); extern void sync_file(void); +extern int sm_check_hostname(struct svc_req *req, char *arg); |