freeaddrinfo(NULL)
George V. Neville-Neil
gnn at neville-neil.com
Tue Sep 21 16:45:01 PDT 2004
At Wed, 22 Sep 2004 07:37:20 +0900,
JINMEI Tatuya / 神明達哉 wrote:
> Note also that other *BSDs and Solaris use the "segfault" logic. The
> freeaddrinfo implementation in the "libbind" library as a part of the
> ISC BIND package, which many UNIX-like OS vendors adopt (perhaps with
> vendor-specific modifications though), also segfaults against a NULL
> argument.
>
> So, although consistency might in general be a good thing, the real
> world's examples show we just have variations.
>
Sorry to come in late on this, but you know I was asleep. One quick
comment. It is easier to find and fix the bug that relating to a
NULL pointer if the program seg faults than if it continues blithely
on. I think we should stick with failing early.
Later,
George
More information about the freebsd-net
mailing list