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

Commit ce48c1c1 authored by destradaa's avatar destradaa
Browse files

Allow INADDR_NONE as a valid configuration in AGpsStatus_v3.

b/21516868

This change makes AGpsStatus_v3 consistent and compatible with the behavior
of AGpsStatus_v2.

Change-Id: Ia4e729d8ed1d61b51ae22c7eaf9bbe33f31b7a45
parent 650a9135
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -220,9 +220,9 @@ static void agps_status_callback(AGpsStatus* agps_status)
      case AF_INET:
          {
            struct sockaddr_in *in = (struct sockaddr_in*)&(agps_status->addr);
            uint32_t *pAddr = (uint32_t*)&(in->sin_addr);
            byteArray = convert_to_ipv4(*pAddr, true /* net_order */);
            if (byteArray != NULL) {
            uint32_t ipAddr = *(uint32_t*)&(in->sin_addr);
            byteArray = convert_to_ipv4(ipAddr, true /* net_order */);
            if (ipAddr == INADDR_NONE || byteArray != NULL) {
                isSupported = true;
            }
            IF_ALOGD() {