Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7701563c authored by Steven Moreland's avatar Steven Moreland Committed by Gerrit Code Review
Browse files

Merge "binderRpcTest: respect network byte order"

parents e8c59a52 6a0dc967
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -663,13 +663,15 @@ public:
                                        break;
                                    case AF_INET:
                                        CHECK_EQ(len, sizeof(sockaddr_in));
                                        service->port = reinterpret_cast<const sockaddr_in*>(addr)
                                                                ->sin_port;
                                        service->port =
                                                ntohs(reinterpret_cast<const sockaddr_in*>(addr)
                                                              ->sin_port);
                                        break;
                                    case AF_INET6:
                                        CHECK_EQ(len, sizeof(sockaddr_in));
                                        service->port = reinterpret_cast<const sockaddr_in6*>(addr)
                                                                ->sin6_port;
                                        service->port =
                                                ntohs(reinterpret_cast<const sockaddr_in6*>(addr)
                                                              ->sin6_port);
                                        break;
                                    default:
                                        LOG_ALWAYS_FATAL("Unrecognized address family %d",