From 7ea8edef92be0c7812699d3e9d9a20bad8227ef3 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Tue, 3 Nov 2009 20:26:14 +0100 Subject: lib/Plugins/Bugzilla: sanitize xmlrpc init; fix bug where ssl_verify=1 always Signed-off-by: Denys Vlasenko --- src/Daemon/Daemon.cpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'src/Daemon/Daemon.cpp') diff --git a/src/Daemon/Daemon.cpp b/src/Daemon/Daemon.cpp index ef78c6a..af4f9dc 100644 --- a/src/Daemon/Daemon.cpp +++ b/src/Daemon/Daemon.cpp @@ -18,11 +18,13 @@ */ #include -#include -#include #include #include #include +#include +#include +#include +#include #if HAVE_CONFIG_H #include #endif @@ -762,6 +764,13 @@ int main(int argc, char** argv) try { init_daemon_logging(&watcher); + + VERB1 log("Initializing XML-RPC library"); + xmlrpc_env env; + xmlrpc_env_init(&env); + xmlrpc_client_setup_global_const(&env); + if (env.fault_occurred) + error_msg_and_die("XML-RPC Fault: %s(%d)", env.fault_string, env.fault_code); VERB1 log("Creating glib main loop"); pMainloop = g_main_loop_new(NULL, FALSE); /* Watching DEBUG_DUMPS_DIR for new files... */ -- cgit