diff options
| author | 2021-06-01 01:46:53 +0100 | |
|---|---|---|
| committer | 2021-06-01 01:46:53 +0100 | |
| commit | 7f88bd76c932e3ba5b1c1b082092c9dcbfaf27ec (patch) | |
| tree | 9b35978ee2437f9b3f1529e3c80605f2e212bc40 /src/modules.cpp | |
| parent | Added -Wshorten-64-to-32 and fixed all warnings. (diff) | |
| parent | Refactor the sslqueries mode handler. (diff) | |
Merge branch 'insp3' into master.
Diffstat (limited to 'src/modules.cpp')
| -rw-r--r-- | src/modules.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules.cpp b/src/modules.cpp index 04a88b4d7..848f30d57 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -588,9 +588,10 @@ void ModuleManager::AddService(ServiceProvider& item) std::string::size_type slash = item.name.find('/'); if (slash != std::string::npos) { + // Also register foo/bar as foo. DataProviders.emplace(item.name.substr(0, slash), &item); - DataProviders.emplace(item.name.substr(slash + 1), &item); } + dynamic_reference_base::reset_all(); break; } |
