Loading ResolverController.cpp +1 −1 Original line number Original line Diff line number Diff line Loading @@ -113,7 +113,7 @@ int getDnsInfo(unsigned netId, std::vector<std::string>* servers, std::vector<st return 0; return 0; } } // Verify that the returned data is sane. // Verify that the returned data is valid. if (nscount < 0 || nscount > MAXNS || dcount < 0 || dcount > MAXDNSRCH) { if (nscount < 0 || nscount > MAXNS || dcount < 0 || dcount > MAXDNSRCH) { LOG(ERROR) << __func__ << ": nscount = " << nscount << ", dcount = " << dcount; LOG(ERROR) << __func__ << ": nscount = " << nscount << ", dcount = " << dcount; return -ENOTRECOVERABLE; return -ENOTRECOVERABLE; Loading doh/dispatcher/mod.rs +1 −1 Original line number Original line Diff line number Diff line Loading @@ -76,7 +76,7 @@ pub struct Dispatcher { } } impl Dispatcher { impl Dispatcher { const DOH_THREADS: usize = 2; const DOH_THREADS: usize = 1; pub fn new(validation: ValidationReporter, tagger: SocketTagger) -> Result<Dispatcher> { pub fn new(validation: ValidationReporter, tagger: SocketTagger) -> Result<Dispatcher> { let (cmd_sender, cmd_receiver) = mpsc::channel::<Command>(MAX_BUFFERED_CMD_COUNT); let (cmd_sender, cmd_receiver) = mpsc::channel::<Command>(MAX_BUFFERED_CMD_COUNT); Loading Loading
ResolverController.cpp +1 −1 Original line number Original line Diff line number Diff line Loading @@ -113,7 +113,7 @@ int getDnsInfo(unsigned netId, std::vector<std::string>* servers, std::vector<st return 0; return 0; } } // Verify that the returned data is sane. // Verify that the returned data is valid. if (nscount < 0 || nscount > MAXNS || dcount < 0 || dcount > MAXDNSRCH) { if (nscount < 0 || nscount > MAXNS || dcount < 0 || dcount > MAXDNSRCH) { LOG(ERROR) << __func__ << ": nscount = " << nscount << ", dcount = " << dcount; LOG(ERROR) << __func__ << ": nscount = " << nscount << ", dcount = " << dcount; return -ENOTRECOVERABLE; return -ENOTRECOVERABLE; Loading
doh/dispatcher/mod.rs +1 −1 Original line number Original line Diff line number Diff line Loading @@ -76,7 +76,7 @@ pub struct Dispatcher { } } impl Dispatcher { impl Dispatcher { const DOH_THREADS: usize = 2; const DOH_THREADS: usize = 1; pub fn new(validation: ValidationReporter, tagger: SocketTagger) -> Result<Dispatcher> { pub fn new(validation: ValidationReporter, tagger: SocketTagger) -> Result<Dispatcher> { let (cmd_sender, cmd_receiver) = mpsc::channel::<Command>(MAX_BUFFERED_CMD_COUNT); let (cmd_sender, cmd_receiver) = mpsc::channel::<Command>(MAX_BUFFERED_CMD_COUNT); Loading