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 +++++++++++-- src/Daemon/Makefile.am | 4 +++- 2 files changed, 14 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/Daemon/Daemon.cpp b/src/Daemon/Daemon.cpp index ef78c6a6..af4f9dc5 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... */ diff --git a/src/Daemon/Makefile.am b/src/Daemon/Makefile.am index 0067e5dd..4365a0c9 100644 --- a/src/Daemon/Makefile.am +++ b/src/Daemon/Makefile.am @@ -24,13 +24,15 @@ abrtd_CPPFLAGS = \ -DPLUGINS_CONF_DIR=\"$(PLUGINS_CONF_DIR)\" \ $(GLIB_CFLAGS) \ $(DBUS_CFLAGS) \ + $(XMLRPC_CFLAGS) $(XMLRPC_CLIENT_CFLAGS) \ $(ENABLE_SOCKET_OR_DBUS) \ -D_GNU_SOURCE abrtd_LDADD = \ ../../lib/Utils/libABRTUtils.la \ $(DL_LIBS) \ $(DBUS_LIBS) \ - $(RPM_LIBS) + $(RPM_LIBS) \ + $(XMLRPC_LIBS) $(XMLRPC_CLIENT_LIBS) dbusabrtconfdir = ${sysconfdir}/dbus-1/system.d/ dist_dbusabrtconf_DATA = dbus-abrt.conf -- cgit