Parcourir la source

[trac703] Correct the test in a check of a command option argument

Stephen Morris il y a 14 ans
Parent
commit
2c8303354d
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      tests/tools/badpacket/command_options.cc

+ 1 - 1
tests/tools/badpacket/command_options.cc

@@ -289,7 +289,7 @@ CommandOptions::processOptionValue(int c, const char* value) {
     }
 
     // Check that tokens lie inside the allowed ranges.
-    if ((tokens.size() == 2) &&
+    if ((tokens.size() == 1) &&
         ((options_[index].minimum < OptionInfo::minval(index)) || (options_[index].maximum > maxval))) {
         isc_throw(isc::BadValue, "the value of " << options_[index].minimum <<
                   " given for " << name << " is outside the range of " <<