• Home
  • Raw
  • Download

Lines Matching refs:mDNSNULL

132 	if (next) return(next->InterfaceID); else return(mDNSNULL);  in GetNextActiveInterfaceID()
390 d1 = d2 = d3 = d4 = d5 = mDNSNULL; in IsLocalDomain()
445 if (parent && parent->c[0] == 0) parent = mDNSNULL; in CompressedDomainNameLength()
492 if (*cstr) return(mDNSNULL); // Failure: We didn't successfully consume all input in AppendLiteralLabelString()
511 …) { LogMsg("AppendDNSNameString: Illegal empty label in name \"%s\"", cstring); return(mDNSNULL); } in AppendDNSNameString()
531 return(mDNSNULL); in AppendDNSNameString()
536 if (*cstr) return(mDNSNULL); // Failure: We didn't successfully consume all input in AppendDNSNameString()
551 if (label->c[0] > MAX_DOMAIN_LABEL) return(mDNSNULL); in AppendDomainLabel()
554 if (ptr + 1 + label->c[0] + 1 > name->c + MAX_DOMAIN_NAME) return(mDNSNULL); in AppendDomainLabel()
569 if (ptr + 1 + src[0] > lim) return(mDNSNULL); in AppendDomainName()
610 if (len > MAX_DOMAIN_LABEL) return(mDNSNULL); // If illegal label, abort in ConvertDomainLabelToCString_withescape()
642 if (src + 1 + *src >= max) return(mDNSNULL); in ConvertDomainNameToCString_withescape()
644 if (!ptr) return(mDNSNULL); in ConvertDomainNameToCString_withescape()
745 mDNSASLLog(mDNSNULL, "serviceType.nameTooLong", "noop", typeBuf, ""); in ConstructServiceName()
748 …if (len < 2 || len >= 0x40 || (len > 16 && !SameDomainName(domain, &localdomain))) return(mDNSNULL in ConstructServiceName()
763 mDNSASLLog(mDNSNULL, "serviceType.nameWithUnderscore", "noop", typeBuf, ""); in ConstructServiceName()
773 mDNSASLLog(mDNSNULL, "serviceType.nameWithIllegalCharacters", "noop", typeBuf, ""); in ConstructServiceName()
796 return(mDNSNULL); in ConstructServiceName()
1030 rr->resrec.rDNSServer = mDNSNULL; in mDNS_SetupResourceRecord()
1044 rr->Additional1 = mDNSNULL; in mDNS_SetupResourceRecord()
1045 rr->Additional2 = mDNSNULL; in mDNS_SetupResourceRecord()
1046 rr->DependentOn = mDNSNULL; in mDNS_SetupResourceRecord()
1047 rr->RRSet = mDNSNULL; in mDNS_SetupResourceRecord()
1073 rr->nta = mDNSNULL; in mDNS_SetupResourceRecord()
1074 rr->tcp = mDNSNULL; in mDNS_SetupResourceRecord()
1106 q->qnameOrig = mDNSNULL; in mDNS_SetupQuestion()
1397 const domainname *const name = estimate ? rr->name : mDNSNULL; in GetRDLength()
1527 if (*domname == 0) return(mDNSNULL); // There's no point trying to match just the root label in FindCompressionPointer()
1562 return(mDNSNULL); in FindCompressionPointer()
1578 const mDNSu8 * pointer = mDNSNULL; in putDomainNameAsLabels()
1581 if (!ptr) { LogMsg("putDomainNameAsLabels %##s ptr is null", name->c); return(mDNSNULL); } in putDomainNameAsLabels()
1585 if (ptr >= limit) return(mDNSNULL); in putDomainNameAsLabels()
1591 { LogMsg("Malformed domain name %##s (label more than 63 bytes)", name->c); return(mDNSNULL); } in putDomainNameAsLabels()
1603 { LogMsg("Malformed domain name %##s (more than 256 bytes)", name->c); return(mDNSNULL); } in putDomainNameAsLabels()
1609 if (ptr+2 > limit) return(mDNSNULL); // If we don't have two bytes of space left, give up in putDomainNameAsLabels()
1619 if (ptr + 1 + len >= limit) return(mDNSNULL); in putDomainNameAsLabels()
1653 { debugf("putRData: Illegal length %d for kDNSType_A", rr->rdlength); return(mDNSNULL); } in putRData()
1654 if (ptr + 4 > limit) return(mDNSNULL); in putRData()
1667 if (!ptr) return(mDNSNULL); in putRData()
1669 if (!ptr || ptr + 20 > limit) return(mDNSNULL); in putRData()
1684 case kDNSType_DHCID:if (ptr + rr->rdlength > limit) return(mDNSNULL); in putRData()
1691 case kDNSType_KX: if (ptr + 3 > limit) return(mDNSNULL); in putRData()
1696 if (!ptr) return(mDNSNULL); in putRData()
1700 case kDNSType_PX: if (ptr + 5 > limit) return(mDNSNULL); in putRData()
1703 if (!ptr) return(mDNSNULL); in putRData()
1708 { debugf("putRData: Illegal length %d for kDNSType_AAAA", rr->rdlength); return(mDNSNULL); } in putRData()
1709 if (ptr + sizeof(rdb->ipv6) > limit) return(mDNSNULL); in putRData()
1713 case kDNSType_SRV: if (ptr + 7 > limit) return(mDNSNULL); in putRData()
1727 if (ptr + len > limit) { LogMsg("ERROR: putOptRData - out of space"); return mDNSNULL; } in putRData()
1777 if (!ptr) return(mDNSNULL); in putRData()
1780 if (ptr + 2 + i > limit) return(mDNSNULL); in putRData()
1789 if (ptr + rr->rdlength > limit) return(mDNSNULL); in putRData()
1802 …const rdatacompressionbase = (IsUnicastUpdate(msg) && rr->rrtype == kDNSType_SRV) ? mDNSNULL : msg; in PutResourceRecordTTLWithLimit()
1810 if (!ptr) { LogMsg("PutResourceRecordTTLWithLimit ptr is null"); return(mDNSNULL); } in PutResourceRecordTTLWithLimit()
1813 if (!ptr || ptr + 10 >= limit) return(mDNSNULL); // If we're out-of-space, return mDNSNULL in PutResourceRecordTTLWithLimit()
1825 …ace in PutResourceRecord for %##s (%s)", rr->name->c, DNSTypeName(rr->rrtype)); return(mDNSNULL); } in PutResourceRecordTTLWithLimit()
1841 if (!ptr || ptr + 10 > limit) return(mDNSNULL); // If we're out-of-space, return mDNSNULL in putEmptyResourceRecord()
1855 if (!ptr || ptr+4 >= limit) return(mDNSNULL); // If we're out-of-space, return mDNSNULL in putQuestion()
1868 if (!ptr || ptr + 4 > limit) return mDNSNULL; // If we're out-of-space, return NULL in putZone()
1881 …SetupResourceRecord(&prereq, mDNSNULL, mDNSInterface_Any, kDNSQType_ANY, kStandardTTL, 0, AuthReco… in putPrereqNameNotInUse()
1915 if (!ptr || ptr + 10 >= limit) return mDNSNULL; // If we're out-of-space, return mDNSNULL in putDeleteRRSetWithLimit()
1935 if (!ptr || ptr + 10 >= limit) return mDNSNULL; // If we're out-of-space, return mDNSNULL in putDeleteAllRRSets()
1951 …sourceRecord(&rr, mDNSNULL, mDNSInterface_Any, kDNSType_OPT, kStandardTTL, kDNSRecordTypeKnownUniq… in putUpdateLease()
1958 if (!end) { LogMsg("ERROR: putUpdateLease - PutResourceRecordTTL"); return mDNSNULL; } in putUpdateLease()
1966 …sourceRecord(&rr, mDNSNULL, mDNSInterface_Any, kDNSType_OPT, kStandardTTL, kDNSRecordTypeKnownUniq… in putUpdateLeaseWithLimit()
1973 if (!end) { LogMsg("ERROR: putUpdateLease - PutResourceRecordTTLWithLimit"); return mDNSNULL; } in putUpdateLeaseWithLimit()
1985 …upResourceRecord(&hinfo, mDNSNULL, mDNSInterface_Any, kDNSType_HINFO, 0, kDNSRecordTypeUnique, Aut… in putHINFO()
2042 { debugf("skipDomainName: Illegal ptr not within packet boundaries"); return(mDNSNULL); } in skipDomainName()
2051 { debugf("skipDomainName: Malformed domain name (overruns packet end)"); return(mDNSNULL); } in skipDomainName()
2053 … { debugf("skipDomainName: Malformed domain name (more than 256 characters)"); return(mDNSNULL); } in skipDomainName()
2058 …40: debugf("skipDomainName: Extended EDNS0 label types 0x%X not supported", len); return(mDNSNULL); in skipDomainName()
2059 case 0x80: debugf("skipDomainName: Illegal label length 0x%X", len); return(mDNSNULL); in skipDomainName()
2069 …const mDNSu8 *nextbyte = mDNSNULL; // Record where we got to before we started following point… in getDomainName()
2074 { debugf("getDomainName: Illegal ptr not within packet boundaries"); return(mDNSNULL); } in getDomainName()
2088 { debugf("getDomainName: Malformed domain name (overruns packet end)"); return(mDNSNULL); } in getDomainName()
2090 … { debugf("getDomainName: Malformed domain name (more than 256 characters)"); return(mDNSNULL); } in getDomainName()
2097 return(mDNSNULL); in getDomainName()
2099 …gf("getDomainName: Illegal label length 0x%X in domain name %##s", len, name->c); return(mDNSNULL); in getDomainName()
2105 …ugf("getDomainName: Illegal compression pointer not within packet boundaries"); return(mDNSNULL); } in getDomainName()
2107 { debugf("getDomainName: Compression pointer must point to real label"); return(mDNSNULL); } in getDomainName()
2121 if (!ptr) { debugf("skipResourceRecord: Malformed RR name"); return(mDNSNULL); } in skipResourceRecord()
2123 … > end) { debugf("skipResourceRecord: Malformed RR -- no type/class/ttl/len!"); return(mDNSNULL); } in skipResourceRecord()
2126 …pktrdlength > end) { debugf("skipResourceRecord: RDATA exceeds end of packet"); return(mDNSNULL); } in skipResourceRecord()
2146 rr->next = mDNSNULL; in GetLargeResourceRecord()
2149 rr->NextInKAList = mDNSNULL; in GetLargeResourceRecord()
2154 rr->CRActiveQuestion = mDNSNULL; in GetLargeResourceRecord()
2163 rr->NextInCFList = mDNSNULL; in GetLargeResourceRecord()
2166 rr->resrec.rDNSServer = mDNSNULL; in GetLargeResourceRecord()
2169 if (!ptr) { debugf("GetLargeResourceRecord: Malformed RR name"); return(mDNSNULL); } in GetLargeResourceRecord()
2172 …nd) { debugf("GetLargeResourceRecord: Malformed RR -- no type/class/ttl/len!"); return(mDNSNULL); } in GetLargeResourceRecord()
2189 …dlength > end) { debugf("GetLargeResourceRecord: RDATA exceeds end of packet"); return(mDNSNULL); } in GetLargeResourceRecord()
2385 SetNewRData(&rr->resrec, mDNSNULL, 0); // Sets rdlength, rdestimate, rdatahash for us in GetLargeResourceRecord()
2404 …if (!ptr) { debugf("skipQuestion: Malformed domain name in DNS question section"); return(mDNSNULL in skipQuestion()
2405 …gf("skipQuestion: Malformed DNS question section -- no query type and class!"); return(mDNSNULL); } in skipQuestion()
2416 if (!ptr) { debugf("Malformed domain name in DNS question section"); return(mDNSNULL); } in getQuestion()
2417 … > end) { debugf("Malformed DNS question section -- no query type and class!"); return(mDNSNULL); } in getQuestion()
2469 return(mDNSNULL); in LocateOptRR()
2484 return(mDNSNULL); in GetLLQOptData()
2650 … (sock->flags & kTCPSocketFlags_UseTLS) ? "TLS" : sock ? "TCP" : "UDP", mDNSNULL, src ? src->port … in mDNSSendDNSMessage()
2714 return mDNSNULL; in AnyLocalRecordReady()