From: bert hubert Date: Tue, 5 May 2015 14:45:44 +0000 (+0200) Subject: prevent crash after --list-modules, probably caused by calls to destructors in dynami... X-Git-Tag: dnsdist-1.0.0-alpha1~248^2~28^2~66 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=44ac5977adaf092d10ae5ce3df572ff9c06e71cf;p=pdns prevent crash after --list-modules, probably caused by calls to destructors in dynamically loaded libraries. Just stop calling them. --- diff --git a/pdns/receiver.cc b/pdns/receiver.cc index 7df07ca2c..c7d6081a3 100644 --- a/pdns/receiver.cc +++ b/pdns/receiver.cc @@ -503,12 +503,12 @@ int main(int argc, char **argv) } if(::arg().mustDo("list-modules")) { - vectormodules=BackendMakers().getModules(); - cerr<<"Modules available:"<::const_iterator i=modules.begin();i!=modules.end();++i) - cout<<*i<