You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by bm...@apache.org on 2016/12/03 01:49:46 UTC
mesos git commit: Fixed incorrect switch code in network address
logic.
Repository: mesos
Updated Branches:
refs/heads/master 65eab2d96 -> c18f4a93a
Fixed incorrect switch code in network address logic.
The expectation here was that only one case would match so no
intentional fall-through would happen.
This was noted by coverity in CID 1396669.
Review: https://reviews.apache.org/r/54304/
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/c18f4a93
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/c18f4a93
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/c18f4a93
Branch: refs/heads/master
Commit: c18f4a93aba7b78fa675a673ccbb6b73e3506664
Parents: 65eab2d
Author: Benjamin Bannier <be...@mesosphere.io>
Authored: Fri Dec 2 17:46:54 2016 -0800
Committer: Benjamin Mahler <bm...@apache.org>
Committed: Fri Dec 2 17:48:38 2016 -0800
----------------------------------------------------------------------
3rdparty/libprocess/include/process/address.hpp | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/c18f4a93/3rdparty/libprocess/include/process/address.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/include/process/address.hpp b/3rdparty/libprocess/include/process/address.hpp
index 01bc065..a2eeb39 100644
--- a/3rdparty/libprocess/include/process/address.hpp
+++ b/3rdparty/libprocess/include/process/address.hpp
@@ -357,15 +357,16 @@ inline std::ostream& operator<<(std::ostream& stream, const Address& address)
{
switch (address.family()) {
case Address::Family::INET: {
- stream << inet::Address(address.sockaddr.in);
+ return stream << inet::Address(address.sockaddr.in);
}
#ifndef __WINDOWS__
case Address::Family::UNIX: {
- stream << unix::Address(address.sockaddr.un);
+ return stream << unix::Address(address.sockaddr.un);
}
#endif // __WINDOWS__
}
- return stream;
+
+ UNREACHABLE();
}
} // namespace network {