Searched refs:newrd (Results 1 - 1 of 1) sorted by relevance

/external/mdnsresponder/mDNSShared/
H A Duds_daemon.c1187 RData *newrd = mallocL("RData/update_record", sizeof(RData) - sizeof(RDataBody) + rdsize); local
1188 if (!newrd) FatalError("ERROR: malloc");
1189 newrd->MaxRDLength = (mDNSu16) rdsize;
1190 mDNSPlatformMemCopy(&newrd->u, rdata, rdlen);
1195 if (rr->resrec.rrtype == kDNSType_TXT && rdlen == 0) { rdlen = 1; newrd->u.txt.c[0] = 0; }
1199 result = mDNS_Update(&mDNSStorage, rr, ttl, rdlen, newrd, update_callback);
1200 if (result) { LogMsg("update_record: Error %d for %s", (int)result, ARDisplayString(&mDNSStorage, rr)); freeL("RData/update_record", newrd); }

Completed in 95 milliseconds