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

Commit c28f7784 authored by Zijun Zhao's avatar Zijun Zhao Committed by Automerger Merge Worker
Browse files

Merge "Fix the Nullable pointer is dereferenced issue" am: 1b287f39 am: cdb3ecb1

parents b55217dc cdb3ecb1
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;