Squashed commit of the following:
commit
e5ffd64ddf366e1243ad75892fd3e8b3f2bd684b
Author: Russ Combs <rucombs@cisco.com>
Date: Thu Dec 15 15:39:39 2016 -0500
fix modbus_data handling to not skip options
thanks to FabianMalte.Kopp@b-tu.de for reporting the issue
std::size_t semi_colon_pos = keyword.find(';');
if (semi_colon_pos != std::string::npos)
{
- // found an option without a colon, so set stream
- // to semi-colon
- std::streamoff off = 1 + (std::streamoff)(pos) +
- (std::streamoff)(semi_colon_pos);
+ // found an option without a colon, so set stream to semi-colon
+ std::streamoff off = 1 + (std::streamoff)(pos) + (std::streamoff)(semi_colon_pos);
stream.seekg(off);
keyword = keyword.substr(0, semi_colon_pos);
}
static const ConvertMap rule_modbus_data =
{
modbus_data,
- unchanged_rule_ctor<& modbus_data>,
+ unchanged_rule_ctor<& modbus_data, false>,
};
const ConvertMap* modbus_data_map = &rule_modbus_data;