Document that freeaddrinfo(NULL) dumps core.

A source code comment already said this, but it's easier to
find in a man page.
This commit is contained in:
wiz 2024-05-09 21:28:00 +00:00
parent 64ab641533
commit 598b1af8b9
1 changed files with 12 additions and 2 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: getaddrinfo.3,v 1.60 2020/06/04 11:28:00 nia Exp $
.\" $NetBSD: getaddrinfo.3,v 1.61 2024/05/09 21:28:00 wiz 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.)