diff options
author | Jiri Moskovcak <jmoskovc@redhat.com> | 2011-02-07 14:09:39 +0100 |
---|---|---|
committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2011-02-07 14:09:39 +0100 |
commit | bcd903fc77dd54e2e360375a7df7c362c7f70718 (patch) | |
tree | 0d79ff487ec2e39e61bca96f113ae7421d3b6815 | |
parent | fa4df78b3741e615e91a149b3a2fa4015669b068 (diff) | |
download | abrt-bcd903fc77dd54e2e360375a7df7c362c7f70718.tar.gz abrt-bcd903fc77dd54e2e360375a7df7c362c7f70718.tar.xz abrt-bcd903fc77dd54e2e360375a7df7c362c7f70718.zip |
fix problem with daemon shutdown when abrt.conf file is wrong
- it gives this message
abrtd: Loading settings
abrtd: abrt.conf: Invalid syntax on line 38
abrtd: Error while initializing daemon
process 20610: arguments to dbus_connection_unref() were incorrect, assertion "connection != NULL" failed in file dbus-connection.c line 2791.
This is normally a bug in some application using the D-Bus library.
D-Bus not built with -rdynamic so unable to print a backtrace
Aborted
-rw-r--r-- | src/daemon/CommLayerServerDBus.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/daemon/CommLayerServerDBus.cpp b/src/daemon/CommLayerServerDBus.cpp index be1f30f3..84c2ea15 100644 --- a/src/daemon/CommLayerServerDBus.cpp +++ b/src/daemon/CommLayerServerDBus.cpp @@ -524,5 +524,6 @@ int init_dbus() void deinit_dbus() { - dbus_connection_unref(g_dbus_conn); + if(g_dbus_conn != NULL) + dbus_connection_unref(g_dbus_conn); } |