summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp')
-rw-r--r--cpp/include/Ice/InputStream.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpp/include/Ice/InputStream.h b/cpp/include/Ice/InputStream.h
index 552289a69f4..a6cad15a451 100644
--- a/cpp/include/Ice/InputStream.h
+++ b/cpp/include/Ice/InputStream.h
@@ -266,6 +266,8 @@ public:
}
Ice::EncodingVersion encoding;
read(encoding);
+ IceInternal::checkSupportedEncoding(encoding); // Make sure the encoding is supported
+
if(encoding == Ice::Encoding_1_0)
{
if(sz != static_cast<Ice::Int>(sizeof(Ice::Int)) + 2)