Bug 1538199 - Remove an useless declaration in TRR.cpp r=valentin
authorSylvestre Ledru <sledru@mozilla.com>
Sat, 23 Mar 2019 18:24:04 +0000
changeset 465833 8941a9be9141409229814e2688d207a890e3121b
parent 465832 2a4bddaaf3dc989f91cd974a6e23f829adec088d
child 465834 9fde8244e2c45c29b4ccad390173539f3c890836
push id112524
push userbtara@mozilla.com
push dateSat, 23 Mar 2019 21:45:28 +0000
treeherdermozilla-inbound@8941a9be9141 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersvalentin
bugs1538199
milestone68.0a1
first release with
nightly linux32
8941a9be9141 / 68.0a1 / 20190323214211 / files
nightly linux64
8941a9be9141 / 68.0a1 / 20190323214211 / files
nightly mac
8941a9be9141 / 68.0a1 / 20190323214211 / files
nightly win32
8941a9be9141 / 68.0a1 / 20190323214211 / files
nightly win64
8941a9be9141 / 68.0a1 / 20190323214211 / files
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
releases
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1538199 - Remove an useless declaration in TRR.cpp r=valentin Differential Revision: https://phabricator.services.mozilla.com/D24506
netwerk/dns/TRR.cpp
--- a/netwerk/dns/TRR.cpp
+++ b/netwerk/dns/TRR.cpp
@@ -394,17 +394,16 @@ nsresult TRR::DohDecodeQuery(const nsCSt
   LOG(("TRR::DohDecodeQuery host %s\n", host.get()));
 
   if (avail < (index + 2)) {
     return NS_ERROR_UNEXPECTED;
   }
   uint16_t i16 = 0;
   i16 += binary[index] << 8;
   i16 += binary[index + 1];
-  index += 4;  // skip question's type, class
   type = (enum TrrType)i16;
 
   LOG(("TRR::DohDecodeQuery type %d\n", (int)type));
 
   return NS_OK;
 }
 
 nsresult TRR::ReceivePush(nsIHttpChannel *pushed, nsHostRecord *pushedRec) {