]> granicus.if.org Git - pdns/commitdiff
oops - case insensitivity fixes for rec_control
authorBert Hubert <bert.hubert@netherlabs.nl>
Sat, 25 Mar 2006 21:15:52 +0000 (21:15 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Sat, 25 Mar 2006 21:15:52 +0000 (21:15 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@625 d19b8d6e-7fed-0310-83ef-9ca221ded41b

pdns/rec_channel_rec.cc

index a23c409dcd1be6657f1a2c7116f02953d2fb1649..cfe9d99cca7f929f7db658c86da8917e9315422e 100644 (file)
@@ -150,16 +150,16 @@ string RecursorControlParser::getAnswer(const string& question)
   string cmd=toLower(words[0]);
   vector<string>::const_iterator begin=words.begin()+1, end=words.end();
 
-  if(words[0]=="get") 
+  if(cmd=="get") 
     return doGet(begin, end);
 
-  if(words[0]=="quit") 
+  if(cmd=="quit") 
     exit(1);
 
-  if(words[0]=="dump-cache") 
+  if(cmd=="dump-cache") 
     return doDumpCache(begin, end);
 
-  if(words[0]=="wipe-cache") 
+  if(cmd=="wipe-cache") 
     return doWipeCache(begin, end);
   
   return "Unknown command '"+cmd+"'\n";