summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2014-05-02 16:29:45 +0200
committerJakub Hrozek <jhrozek@redhat.com>2014-05-13 21:46:34 +0200
commit94f07a6f4375ec25d8fa5c99a0c4f68de7002457 (patch)
treecb4f39b85d6bf31c0557ddb87e6ec5f7dd230f6b /src
parent3d5908ed0faf400a5c7d9c3e4312597ee1b7786a (diff)
downloadsssd-94f07a6f4375ec25d8fa5c99a0c4f68de7002457.tar.gz
sssd-94f07a6f4375ec25d8fa5c99a0c4f68de7002457.tar.xz
sssd-94f07a6f4375ec25d8fa5c99a0c4f68de7002457.zip
SBUS: Fix error handling condition
Reviewed-by: Pavel Březina <pbrezina@redhat.com> Reviewed-by: Stef Walter <stefw@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/sbus/sssd_dbus_request.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sbus/sssd_dbus_request.c b/src/sbus/sssd_dbus_request.c
index 342d8dfd2..d8b189095 100644
--- a/src/sbus/sssd_dbus_request.c
+++ b/src/sbus/sssd_dbus_request.c
@@ -226,7 +226,8 @@ sbus_request_parse_or_finish(struct sbus_request *request,
} else {
/* Trying to send the error back to the caller in this case is a joke */
- if (!dbus_error_is_set(&error) || dbus_error_has_name(&error, DBUS_ERROR_NO_MEMORY)) {
+ if (!dbus_error_is_set(&error) &&
+ dbus_error_has_name(&error, DBUS_ERROR_NO_MEMORY)) {
DEBUG(SSSDBG_CRIT_FAILURE, "Out of memory parsing DBus message\n");
sbus_request_finish(request, NULL);