@@ -196,7 +196,7 @@ M2MTLVDeserializer::Error M2MTLVDeserializer::deserialize_resources(const uint8_
196
196
} else if (TYPE_MULTIPLE_RESOURCE == til._type ) {
197
197
for (; it!=list.end (); it++) {
198
198
if ((*it)->supports_multiple_instances ()) {
199
- error = deserialize_resource_instances (tlv, tlv_size-offset , offset, (**it), object_instance, operation, update_value);
199
+ error = deserialize_resource_instances (tlv, tlv_size, offset, (**it), object_instance, operation, update_value);
200
200
}
201
201
}
202
202
@@ -268,7 +268,7 @@ M2MTLVDeserializer::Error M2MTLVDeserializer::deserialize_resource_instances(con
268
268
offset += til._length ;
269
269
270
270
if (offset < tlv_size) {
271
- error = deserialize_resource_instances (tlv, tlv_size-offset , offset, resource, object_instance, operation, update_value);
271
+ error = deserialize_resource_instances (tlv, tlv_size, offset, resource, object_instance, operation, update_value);
272
272
}
273
273
return error;
274
274
}
@@ -321,7 +321,7 @@ M2MTLVDeserializer::Error M2MTLVDeserializer::deserialize_resource_instances(con
321
321
offset += til._length ;
322
322
323
323
if (offset < tlv_size) {
324
- error = deserialize_resource_instances (tlv, tlv_size-offset , offset, resource, operation, update_value);
324
+ error = deserialize_resource_instances (tlv, tlv_size, offset, resource, operation, update_value);
325
325
}
326
326
return error;
327
327
}
0 commit comments