Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 520e161a authored by Hungming Chen's avatar Hungming Chen Committed by android-build-merger
Browse files

dns_responder: Return an error if failed to build a resource record am: a7f9e985e7

am: 183837de4e

Change-Id: Ib08a40a60c8b55d741d7a3966802c0ba465a4d2a
parents 53614144 3f1b552d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -821,7 +821,7 @@ bool DNSResponder::addAnswerRecords(const DNSQuestion& question,
                    .rclass = ns_class::ns_c_in,
                    .ttl = 5,  // seconds
            };
            fillAnswerRdata(it->second, record);
            if (!fillAnswerRdata(it->second, record)) return false;
            answers->push_back(std::move(record));
            if (rtype != ns_type::ns_t_cname) break;
            rname = it->second;