<feed xmlns='http://www.w3.org/2005/Atom'>
<title>openbsd/src/lib/libc/net/freeaddrinfo.c, branch OPENBSD_7_9</title>
<subtitle>A mirror of https://github.com/libressl/openbsd.git
</subtitle>
<id>https://git.lua4.win/openbsd/atom?h=OPENBSD_7_9</id>
<link rel='self' href='https://git.lua4.win/openbsd/atom?h=OPENBSD_7_9'/>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/'/>
<updated>2025-12-08T13:30:08+00:00</updated>
<entry>
<title>Do not crash when calling freeaddrinfo(NULL)</title>
<updated>2025-12-08T13:30:08+00:00</updated>
<author>
<name>jca</name>
<email></email>
</author>
<published>2025-12-08T13:30:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=2a9ce651b1c5e84f70570a283e2a5ccd1e14eb25'/>
<id>urn:sha1:2a9ce651b1c5e84f70570a283e2a5ccd1e14eb25</id>
<content type='text'>
Supported by Linux since at least 1997, and FreeBSD since 2017.  While
not defined, there's no real good reason to crash when we could just
cope.  Indeed, software out there relies on the Linux behavior.

Point out in the manpage that the behavior of getaddrinfo(NULL) isn't
defined and thus isn't portable.

Edge case spotted recently by kn@ in OpenVPN.
ok millert@ djm@ deraadt@ kn@
</content>
</entry>
<entry>
<title>Delete casts to off_t and size_t that are implied by assignments</title>
<updated>2016-09-21T04:38:56+00:00</updated>
<author>
<name>guenther</name>
<email></email>
</author>
<published>2016-09-21T04:38:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=4f42c802703f53d8169bb55766b44a362a136d7c'/>
<id>urn:sha1:4f42c802703f53d8169bb55766b44a362a136d7c</id>
<content type='text'>
or prototypes.  Ditto for some of the char* and void* casts too.

verified no change to instructions on ILP32 (i386) and LP64 (amd64)
ok natano@ abluhm@ deraadt@ millert@
</content>
</entry>
<entry>
<title>Remove NULL-checks before free() and a few related dead assignments.</title>
<updated>2015-12-28T22:08:18+00:00</updated>
<author>
<name>mmcc</name>
<email></email>
</author>
<published>2015-12-28T22:08:18+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=70faac3485d844275c45acf2ad85cab3c2fa242d'/>
<id>urn:sha1:70faac3485d844275c45acf2ad85cab3c2fa242d</id>
<content type='text'>
ok and valuable input from millert@
</content>
</entry>
<entry>
<title>Finish wrapping &lt;netdb.h&gt; so that calls go direct and the symbols are all weak</title>
<updated>2015-09-14T07:38:38+00:00</updated>
<author>
<name>guenther</name>
<email></email>
</author>
<published>2015-09-14T07:38:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=69d51e1e52740c86a8655750d6b847266c605ef4'/>
<id>urn:sha1:69d51e1e52740c86a8655750d6b847266c605ef4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>ansify. ok deraadt@ moritz@</title>
<updated>2005-03-25T13:24:12+00:00</updated>
<author>
<name>otto</name>
<email></email>
</author>
<published>2005-03-25T13:24:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=2f490723a2e673b2457f65c4b06cacb7d700a3e8'/>
<id>urn:sha1:2f490723a2e673b2457f65c4b06cacb7d700a3e8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>add some missing $, ok djm@ 'That looks fine to me' millert@</title>
<updated>2004-10-01T04:08:45+00:00</updated>
<author>
<name>jsg</name>
<email></email>
</author>
<published>2004-10-01T04:08:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=286f2c9acc73fa2c79290ce6e5c7437d99f9f865'/>
<id>urn:sha1:286f2c9acc73fa2c79290ce6e5c7437d99f9f865</id>
<content type='text'>
</content>
</entry>
<entry>
<title>don't permit freeaddrinfo(NULL).  now the behavior is consistent</title>
<updated>2000-01-28T17:47:26+00:00</updated>
<author>
<name>itojun</name>
<email></email>
</author>
<published>2000-01-28T17:47:26+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=af545fafa6ab3bf7a4f91cc73e97df4db15930c1'/>
<id>urn:sha1:af545fafa6ab3bf7a4f91cc73e97df4db15930c1</id>
<content type='text'>
across {free,net,open}bsd.

both rfc2553 and X/Open spec are silent about the behavior,
and there's no strong consensus either.  i think library should NOT be
forgiving in this case, to promote development of more robust 3rd-party
codebase (code works on "freeaddrinfo(NULL) = SEGV" will work on
"freeaddrinfo(NULL) is okay" environment, but not the other way around).
only issue i have now is NRL freeaddrinfo() compatibility, which permits
freeaddrinfo(NULL).
</content>
</entry>
<entry>
<title>avoid memory leakage on freeaddrinfo().</title>
<updated>2000-01-27T08:23:46+00:00</updated>
<author>
<name>itojun</name>
<email></email>
</author>
<published>2000-01-27T08:23:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=5b1f731bf4378d5cde8894a5aa27c652e69e5a5f'/>
<id>urn:sha1:5b1f731bf4378d5cde8894a5aa27c652e69e5a5f</id>
<content type='text'>
(this bug was introduced since we mix KAME getaddrinfo and NRL freeaddrinfo).
</content>
</entry>
<entry>
<title>KNF</title>
<updated>1999-06-23T22:14:51+00:00</updated>
<author>
<name>deraadt</name>
<email></email>
</author>
<published>1999-06-23T22:14:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=c9acd185820380c6eedba713cb86eaf97af03d53'/>
<id>urn:sha1:c9acd185820380c6eedba713cb86eaf97af03d53</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Added some protocol independent interfaces (supposedly IPv6 support APIs, but</title>
<updated>1999-06-23T21:55:29+00:00</updated>
<author>
<name>cmetz</name>
<email></email>
</author>
<published>1999-06-23T21:55:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.lua4.win/openbsd/commit/?id=bdf7624d67f3bba1a3faed9abf0d2d27291c1cce'/>
<id>urn:sha1:bdf7624d67f3bba1a3faed9abf0d2d27291c1cce</id>
<content type='text'>
ones that are useful for all protocols, not just IPv6).
</content>
</entry>
</feed>
