Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
0c0fc1c8
Commit
0c0fc1c8
authored
Dec 09, 2014
by
Matthias Vallentin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix potential segfault in message_handler::or_else.
parent
750d9492
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
libcaf_core/caf/message_handler.hpp
libcaf_core/caf/message_handler.hpp
+7
-1
No files found.
libcaf_core/caf/message_handler.hpp
View file @
0c0fc1c8
...
...
@@ -111,7 +111,13 @@ class message_handler {
// using a behavior is safe here, because we "cast"
// it back to a message_handler when appropriate
behavior
tmp
{
std
::
forward
<
Ts
>
(
args
)...};
return
m_impl
->
or_else
(
tmp
.
as_behavior_impl
());
if
(
!
tmp
)
{
return
*
this
;
}
if
(
m_impl
)
{
return
m_impl
->
or_else
(
tmp
.
as_behavior_impl
());
}
return
tmp
;
}
private:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment