vm: fix a null dereference on out-of-memory
[minix.git] / lib / libc / resolv / __dn_comp.c
blobf8403315e86e6713a7d00313427edadfb2419d77
1 /* $NetBSD: __dn_comp.c,v 1.5 2007/01/17 16:39:20 seanb Exp $ */
3 /*
4 * written by matthew green, 22/04/97.
5 * public domain.
6 */
8 #include <sys/cdefs.h>
9 #if defined(LIBC_SCCS) && !defined(lint)
10 __RCSID("$NetBSD: __dn_comp.c,v 1.5 2007/01/17 16:39:20 seanb Exp $");
11 #endif /* LIBC_SCCS and not lint */
13 #if defined(__indr_reference)
14 __indr_reference(__dn_comp,dn_comp)
15 #else
17 #include <sys/types.h>
18 #include <netinet/in.h>
19 #include <resolv.h>
21 /* XXX THIS IS A MESS! SEE <resolv.h> XXX */
23 #undef dn_comp
24 int dn_comp(const char *, u_char *, int, u_char **, u_char **);
26 int
27 dn_comp(const char *exp_dn, u_char *comp_dn, int length, u_char **dnptrs,
28 u_char **lastdnptr)
31 return __dn_comp(exp_dn, comp_dn, length, dnptrs, lastdnptr);
34 #endif