summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam A. Kennington III <wak@google.com>2019-05-08 19:15:51 -0700
committerWilliam A. Kennington III <wak@google.com>2019-05-17 14:05:37 -0700
commit1befc49be9b32b1c04cc9485c132827c86aa891c (patch)
tree83e33315a85cf67e93c7b6585163a5fba99c807a
parentc077190dfa34f83869685a34fce78d57bfc96f76 (diff)
downloadsdbusplus-1befc49be9b32b1c04cc9485c132827c86aa891c.tar.gz
sdbusplus-1befc49be9b32b1c04cc9485c132827c86aa891c.zip
message: Fix passing of sd_bus interface to new messages
This breaks unit testing if we try and mock out the creation of method replies and errors since it will try and use the default implementation instead of the one provided to the initial message or bus. Change-Id: I700bef0bae9a8a371ec0121f8115acd30aee5220 Signed-off-by: William A. Kennington III <wak@google.com>
-rw-r--r--sdbusplus/message.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/sdbusplus/message.hpp b/sdbusplus/message.hpp
index 11cfb9f..a307a6f 100644
--- a/sdbusplus/message.hpp
+++ b/sdbusplus/message.hpp
@@ -300,7 +300,7 @@ class message
throw exception::SdBusError(-r, "sd_bus_message_new_method_return");
}
- return message(reply, std::false_type());
+ return message(reply, _intf, std::false_type());
}
/** @brief Create a 'method_error' type message from an existing message.
@@ -318,7 +318,7 @@ class message
throw exception::SdBusError(-r, "sd_bus_message_new_method_errno");
}
- return message(reply, std::false_type());
+ return message(reply, _intf, std::false_type());
}
/** @brief Perform a 'method-return' response call. */
OpenPOWER on IntegriCloud