summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libc/net/getnameinfo.38
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libc/net/getnameinfo.3 b/src/lib/libc/net/getnameinfo.3
index 2416a8bf82..d99d98f50d 100644
--- a/src/lib/libc/net/getnameinfo.3
+++ b/src/lib/libc/net/getnameinfo.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: getnameinfo.3,v 1.25 2003/08/28 01:50:37 itojun Exp $ 1.\" $OpenBSD: getnameinfo.3,v 1.26 2003/08/28 09:47:47 itojun Exp $
2.\" $KAME: getnameinfo.3,v 1.20 2001/01/05 13:37:37 itojun Exp $ 2.\" $KAME: getnameinfo.3,v 1.20 2001/01/05 13:37:37 itojun Exp $
3.\" 3.\"
4.\" Copyright (c) 1983, 1987, 1991, 1993 4.\" Copyright (c) 1983, 1987, 1991, 1993
@@ -289,8 +289,8 @@ returns both numeric and FQDN notation of the address specified in
289There is no return value that indicates if the string returned in 289There is no return value that indicates if the string returned in
290.Fa host 290.Fa host
291is a result of binary to numeric-text translation (like 291is a result of binary to numeric-text translation (like
292.Xr inet_ntop 3 292.Xr inet_ntop 3) ,
293), or the result of DNS reverse lookup. 293or the result of DNS reverse lookup.
294Therefore, malicious parties could set up PTR record like below: 294Therefore, malicious parties could set up PTR record like below:
295.Bd -literal -offset indent 295.Bd -literal -offset indent
2961.0.0.127.in-addr.arpa. IN PTR 10.1.1.1 2961.0.0.127.in-addr.arpa. IN PTR 10.1.1.1
@@ -305,7 +305,7 @@ is
305when it actually is 305when it actually is
306.Li 127.0.0.1 . 306.Li 127.0.0.1 .
307.Pp 307.Pp
308To prevent such attacks, the use of 308To prevent such attacks, the use of
309.Li NI_NAMEREQD 309.Li NI_NAMEREQD
310like below is recommended when you use the result of 310like below is recommended when you use the result of
311.Nm 311.Nm