Browse Source

[master]Merge branch 'master' of ssh://git.bind10.isc.org//var/bind10/git/bind10

Jeremy C. Reed 12 years ago
parent
commit
2039944b9b
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/lib/util/encode/base_n.cc

+ 2 - 1
src/lib/util/encode/base_n.cc

@@ -291,7 +291,8 @@ BaseNTransformer<BitsPerChunk, BaseZeroCode, Encoder, Decoder>::decode(
                 isc_throw(BadValue, "Too many " << algorithm
                 isc_throw(BadValue, "Too many " << algorithm
                           << " padding characters: " << input);
                           << " padding characters: " << input);
             }
             }
-        } else if (ch < 0 || !isspace(ch)) {
+        } else if (!(ch > 0 && isspace(ch))) {
+            // see the note for DecodeNormalizer::skipSpaces() above for ch > 0
             break;
             break;
         }
         }
         ++srit;
         ++srit;