diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-11-03 20:26:14 +0100 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-11-03 20:26:14 +0100 |
| commit | 7ea8edef92be0c7812699d3e9d9a20bad8227ef3 (patch) | |
| tree | ddfccb0151e6c3e7e0838559ca7c4d025ab448b3 /lib/Plugins/Catcut.cpp | |
| parent | 4c5a40576d23057291810229b7229771a295a52c (diff) | |
| download | abrt-7ea8edef92be0c7812699d3e9d9a20bad8227ef3.tar.gz abrt-7ea8edef92be0c7812699d3e9d9a20bad8227ef3.tar.xz abrt-7ea8edef92be0c7812699d3e9d9a20bad8227ef3.zip | |
lib/Plugins/Bugzilla: sanitize xmlrpc init; fix bug where ssl_verify=1 always
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'lib/Plugins/Catcut.cpp')
| -rw-r--r-- | lib/Plugins/Catcut.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Plugins/Catcut.cpp b/lib/Plugins/Catcut.cpp index 5f0583f..6bb44a9 100644 --- a/lib/Plugins/Catcut.cpp +++ b/lib/Plugins/Catcut.cpp @@ -43,7 +43,10 @@ static void throw_if_xml_fault_occurred() static void new_xmlrpc_client(const char* url, bool no_ssl_verify) { xmlrpc_env_init(&env); - xmlrpc_client_setup_global_const(&env); + + /* This should be done at program startup, once. + * We do it in abrtd's main */ + /* xmlrpc_client_setup_global_const(&env); */ curlParms.network_interface = NULL; curlParms.no_ssl_verifypeer = no_ssl_verify; @@ -71,7 +74,6 @@ static void destroy_xmlrpc_client() xmlrpc_server_info_free(server_info); xmlrpc_env_clean(&env); xmlrpc_client_destroy(client); - xmlrpc_client_teardown_global_const(); } static string login(const char* login, const char* passwd) |
