From 94f07a6f4375ec25d8fa5c99a0c4f68de7002457 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Fri, 2 May 2014 16:29:45 +0200 Subject: SBUS: Fix error handling condition MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Pavel Březina Reviewed-by: Stef Walter --- src/sbus/sssd_dbus_request.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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); -- cgit