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

Commit 1b287f39 authored by Zijun Zhao's avatar Zijun Zhao Committed by Gerrit Code Review
Browse files

Merge "Fix the Nullable pointer is dereferenced issue"

parents 8108f418 a201336b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -81,6 +81,7 @@ status_t RpcServer::setupInetServer(const char* address, unsigned int port,
    auto aiStart = InetSocketAddress::getAddrInfo(address, port);
    if (aiStart == nullptr) return UNKNOWN_ERROR;
    for (auto ai = aiStart.get(); ai != nullptr; ai = ai->ai_next) {
        if (ai->ai_addr == nullptr) continue;
        InetSocketAddress socketAddress(ai->ai_addr, ai->ai_addrlen, address, port);
        if (status_t status = setupSocketServer(socketAddress); status != OK) {
            continue;