Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
ratelimitedlog.hh \
rcpgenerator.cc \
rec-eventtrace.cc rec-eventtrace.hh \
- rec-responsestats.hh rec-responsestats.cc \
rec-nsspeeds.cc rec-nsspeeds.hh \
+ rec-responsestats.hh rec-responsestats.cc \
rec-rust-lib/cxxsupport.cc \
rec-system-resolve.hh rec-system-resolve.cc \
rec-taskqueue.cc rec-taskqueue.hh \
.. function:: getConfigDirAndName() -> str, str
- .. versionadded:: 5.2.x
+ .. versionadded:: 5.3.0
Get the configuration directory and the instance name.
These two values correspond to the :ref:`setting-yaml-recursor.config_dir` and :ref:`setting-yaml-recursor.config_name` settings.
void decodeNetmask(protozero::pbf_message<T>& message, Netmask& subnet)
{
auto data = message.get_bytes();
- memcpy(&subnet, data.data(), data.size());
+ memcpy(&subnet, data.data(), std::min(sizeof(subnet), data.size()));
}