Module Name:    src
Committed By:   martin
Date:           Sat Jul 20 15:25:50 UTC 2024

Modified Files:
        src/lib/libc/net [netbsd-10]: getaddrinfo.3

Log Message:
Pull up following revision(s) (requested by rin in ticket #753):

        lib/libc/net/getaddrinfo.3: revision 1.61

Document that freeaddrinfo(NULL) dumps core.

A source code comment already said this, but it's easier to
find in a man page.


To generate a diff of this commit:
cvs rdiff -u -r1.60 -r1.60.6.1 src/lib/libc/net/getaddrinfo.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/net/getaddrinfo.3
diff -u src/lib/libc/net/getaddrinfo.3:1.60 src/lib/libc/net/getaddrinfo.3:1.60.6.1
--- src/lib/libc/net/getaddrinfo.3:1.60	Thu Jun  4 11:28:00 2020
+++ src/lib/libc/net/getaddrinfo.3	Sat Jul 20 15:25:50 2024
@@ -1,4 +1,4 @@
-.\"	$NetBSD: getaddrinfo.3,v 1.60 2020/06/04 11:28:00 nia Exp $
+.\"	$NetBSD: getaddrinfo.3,v 1.60.6.1 2024/07/20 15:25:50 martin Exp $
 .\"	$KAME: getaddrinfo.3,v 1.36 2005/01/05 03:23:05 itojun Exp $
 .\"	$OpenBSD: getaddrinfo.3,v 1.35 2004/12/21 03:40:31 jaredy Exp $
 .\"
@@ -17,7 +17,7 @@
 .\" OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 .\" PERFORMANCE OF THIS SOFTWARE.
 .\"
-.Dd June 4, 2020
+.Dd May 9, 2024
 .Dt GETADDRINFO 3
 .Os
 .Sh NAME
@@ -494,3 +494,13 @@ function is defined by the
 draft specification and documented in
 .Dv "RFC 3493" ,
 .Dq Basic Socket Interface Extensions for IPv6 .
+.Sh NOTES
+In the current implementation,
+.Dl freeaddrinfo(NULL);
+will cause a segmentation fault.
+.Po Tn RFC
+3493 does not specify what should happen,
+.St -xns5.2
+says
+.Dv NULL
+is an invalid argument.)

Reply via email to