Commit f15bcc34 authored by ufownl's avatar ufownl Committed by Dominik Charousset

Fix possible segfault when forwarding messages

parent 3766c38d
...@@ -440,8 +440,8 @@ invoke_message_result local_actor::invoke_message(mailbox_element_ptr& ptr, ...@@ -440,8 +440,8 @@ invoke_message_result local_actor::invoke_message(mailbox_element_ptr& ptr,
has_timeout(false); has_timeout(false);
} }
ptr.swap(current_element_); ptr.swap(current_element_);
auto res = post_process_invoke_res(this, auto is_req = current_element_->mid.is_request();
current_element_->mid.is_request(), auto res = post_process_invoke_res(this, is_req,
fun(current_element_->msg)); fun(current_element_->msg));
ptr.swap(current_element_); ptr.swap(current_element_);
if (res) if (res)
......
...@@ -213,7 +213,7 @@ inline uint8_t hex_nibble(char c) { ...@@ -213,7 +213,7 @@ inline uint8_t hex_nibble(char c) {
? c - '0' ? c - '0'
: (c >= 'a' && c <= 'f' ? (c - 'a') + 10 : (c >= 'a' && c <= 'f' ? (c - 'a') + 10
: (c - 'A') + 10)); : (c - 'A') + 10));
}; }
} // namespace <anonymous> } // namespace <anonymous>
......
...@@ -620,7 +620,7 @@ first_stage::behavior_type first_stage_impl() { ...@@ -620,7 +620,7 @@ first_stage::behavior_type first_stage_impl() {
return [](int i) { return [](int i) {
return static_cast<double>(i) * 2; return static_cast<double>(i) * 2;
}; };
}; }
second_stage::behavior_type second_stage_impl() { second_stage::behavior_type second_stage_impl() {
return [](double x) { return [](double x) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment