Lines Matching refs:NULL
91 {0, 0, 0, 0, NULL, NULL, 0},
184 if ((ai) == NULL) { \
220 assert(p != NULL); in str2number()
223 ep = NULL; in str2number()
247 return _find_src_addr(&addr.sa, NULL, mark, uid) == 1; in have_ipv6()
256 return _find_src_addr(&addr.sa, NULL, mark, uid) == 1; in have_ipv4()
508 assert(pai != NULL); in explore_null()
510 assert(res != NULL); in explore_null()
512 *res = NULL; in explore_null()
513 sentinel.ai_next = NULL; in explore_null()
532 if (afd == NULL) return 0; in explore_null()
562 assert(pai != NULL); in explore_numeric()
565 assert(res != NULL); in explore_numeric()
567 *res = NULL; in explore_numeric()
568 sentinel.ai_next = NULL; in explore_numeric()
577 if (afd == NULL) return 0; in explore_numeric()
621 assert(pai != NULL); in explore_numeric_scope()
624 assert(res != NULL); in explore_numeric_scope()
632 if (afd == NULL) return 0; in explore_numeric_scope()
637 if (cp == NULL) return explore_numeric(pai, hostname, servname, res, hostname); in explore_numeric_scope()
643 if (hostname2 == NULL) return EAI_MEMORY; in explore_numeric_scope()
670 assert(pai != NULL); in get_canonname()
671 assert(ai != NULL); in get_canonname()
672 assert(str != NULL); in get_canonname()
676 if (ai->ai_canonname == NULL) return EAI_MEMORY; in get_canonname()
686 assert(pai != NULL); in get_ai()
687 assert(afd != NULL); in get_ai()
688 assert(addr != NULL); in get_ai()
691 if (ai == NULL) return NULL; in get_ai()
705 assert(ai != NULL); in get_portmatch()
717 assert(ai != NULL); in get_port()
720 if (servname == NULL) return 0; in get_port()
757 proto = NULL; in get_port()
761 if ((sp = getservbyname(servname, proto)) == NULL) return EAI_SERVICE; in get_port()
782 if (af == PF_UNSPEC) return NULL; in find_afd()
786 return NULL; in find_afd()
795 assert(scope != NULL); in ip6_str2scopeid()
796 assert(sin6 != NULL); in ip6_str2scopeid()
797 assert(scopeid != NULL); in ip6_str2scopeid()
836 return NULL; \
857 assert(qname != NULL); in getanswer()
858 assert(pai != NULL); in getanswer()
862 canonname = NULL; in getanswer()
873 return NULL; /* XXX should be abort(); */ in getanswer()
887 return (NULL); in getanswer()
892 return (NULL); in getanswer()
903 return (NULL); in getanswer()
999 if (afd == NULL) { in getanswer()
1004 if (cur->ai_next == NULL) had_error++; in getanswer()
1023 return NULL; in getanswer()
1359 if (elems == NULL) { in _rfc6724_sort()
1369 assert(cur != NULL); in _rfc6724_sort()
1387 elems[nelem - 1].ai->ai_next = NULL; in _rfc6724_sort()
1459 if (sentinel.ai_next == NULL) { in dns_getaddrinfo()
1481 *hostf = NULL; in _endhtent()
1493 assert(name != NULL); in _gethtent()
1494 assert(pai != NULL); in _gethtent()
1496 if (!*hostf && !(*hostf = fopen(_PATH_HOSTS, "re"))) return (NULL); in _gethtent()
1498 if (!(p = fgets(hostbuf, sizeof hostbuf, *hostf))) return (NULL); in _gethtent()
1506 cname = NULL; in _gethtent()
1514 if ((cp = strpbrk(cp, " \t")) != NULL) *cp++ = '\0'; in _gethtent()
1739 assert(name != NULL); in res_queryN()
1815 assert(name != NULL); in res_searchN()
1816 assert(target != NULL); in res_searchN()
1832 ret = res_querydomainN(name, NULL, target, res, herrno); in res_searchN()
1901 ret = res_querydomainN(name, NULL, target, res, herrno); in res_searchN()
1930 assert(name != NULL); in res_querydomainN()
1932 if (domain == NULL) { in res_querydomainN()