]> git.ipfire.org Git - thirdparty/snort3.git/commit
Fixed errors in handling of connector configuration. Previously the module created...
authorEd Borgoyn <eborgoyn@cisco.com>
Tue, 26 Apr 2016 19:14:02 +0000 (15:14 -0400)
committerEd Borgoyn <eborgoyn@cisco.com>
Tue, 26 Apr 2016 19:20:04 +0000 (15:20 -0400)
commit22def9c0415c28d1a53a14a6852944634db64b80
tree455242a1630558188884a2380b20667a9d20d865
parenta93823a0aca1d2acc835cc628b809dad86ea0612
Fixed errors in handling of connector configuration.  Previously the module created a static configuration list and then handed off a copy of this to side_channel.  This had some errors and was confusing.  Moved to a totally dynamically allocated config_set.  The module creates a vector of pointers and then hands this over to the side_channel.  No copying.  And no memory leaks.
13 files changed:
src/connectors/file_connector/file_connector.cc
src/connectors/file_connector/file_connector.h
src/connectors/file_connector/file_connector_config.h
src/connectors/file_connector/file_connector_module.cc
src/connectors/file_connector/file_connector_module.h
src/flow/ha.cc
src/flow/ha.h
src/flow/test/ha_test.cc
src/framework/connector.h
src/managers/connector_manager.cc
src/side_channel/side_channel.cc
src/stream/base/stream_ha.cc
src/stream/base/stream_ha.h