]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[1144] read instead of peek in rdata/generic/detail/ds_like.h
authorDima Volodin <dvv@isc.org>
Tue, 4 Oct 2011 11:33:05 +0000 (07:33 -0400)
committerDima Volodin <dvv@isc.org>
Tue, 4 Oct 2011 11:33:05 +0000 (07:33 -0400)
src/lib/dns/rdata/generic/detail/ds_like.h

index 1061ece2f14a1d0a5e93f4d0e424fde2c55b4e3e..b5a35cd967bb87dd2a88ebee1c2f778f94a165a3 100644 (file)
@@ -87,7 +87,7 @@ public:
                       RRType(typeCode) << " digest type out of range");
         }
 
-        peekc = iss.peek();
+        iss.read(&peekc, 1);
         if (!iss.good() || !isspace(peekc, iss.getloc())) {
             isc_throw(InvalidRdataText,
                       RRType(typeCode) << " presentation format error");