* k5-int.h: Include errno.h.
* krb5.hin: Don't include errno.h.
+ * fake-addrinfo.h (getaddrinfo) [__linux__]: Don't crash if hint
+ is a null pointer.
+
2002-03-27 Ken Raeburn <raeburn@mit.edu>
* fake-addrinfo.h [NEED_FAKE_GETADDRINFO]: Include errno.h.
they get around to fixing it, add a compile-time or run-time
check for the glibc version in use. */
#define COPY_FIRST_CANONNAME
- if (name && (hint->ai_flags & AI_CANONNAME)) {
+ if (name && hint && (hint->ai_flags & AI_CANONNAME)) {
struct hostent *hp;
const char *name2 = 0;
int i;