1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

async dns: android: fix build error

https://github.com/warmcat/libwebsockets/issues/1783
This commit is contained in:
Micon Frink 2019-12-01 17:02:53 -06:00 committed by Andy Green
parent cb2b0e88b2
commit fdbfafd1b5

View file

@ -45,7 +45,7 @@ lws_plat_asyncdns_init(struct lws_context *context, lws_sockaddr46 *sa46)
}
ip32 = (i[0] << 24) | (i[1] << 16) | (i[2] << 8) | i[3];
n = ip32 == sa->sin_addr.s_addr;
n = ip32 == sa46->sa4.sin_addr.s_addr;
sa46->sa4.sin_family = AF_INET;
sa46->sa4.sin_addr.s_addr = ip32;