diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2019-11-11 21:09:25 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2019-11-11 21:09:25 +0000 |
commit | 61767de7fa6b7337ceb8ad7c60f2c4a894aef03a (patch) | |
tree | f87b42e6fb8155ebe79e11e48badebee5679d311 | |
parent | bdc38fc281dfae7c2d4eee86687808dee46f81f6 (diff) | |
parent | bf4188987042001c00764e99694928df6d78ab9a (diff) | |
download | platform_external_android-clat-android10-mainline-resolv-release.tar.gz platform_external_android-clat-android10-mainline-resolv-release.tar.bz2 platform_external_android-clat-android10-mainline-resolv-release.zip |
Snap for 6001391 from bf4188987042001c00764e99694928df6d78ab9a to qt-aml-resolv-releaseandroid-mainline-10.0.0_r8android10-mainline-resolv-release
Change-Id: I58c3ebfa5310c0b2e761b655bd3dc5b819fe8b6c
-rw-r--r-- | config.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -234,7 +234,7 @@ int connect_is_ipv4_address_free(in_addr_t addr) { // Attempt to connect to the address. If the connection succeeds and getsockname returns the same // the address then the address is already assigned to the system and we can't use it. - struct sockaddr_in sin = { .sin_family = AF_INET, .sin_addr = { addr }, .sin_port = 53 }; + struct sockaddr_in sin = { .sin_family = AF_INET, .sin_addr = { addr }, .sin_port = htons(53) }; socklen_t len = sizeof(sin); int inuse = connect(s, (struct sockaddr *)&sin, sizeof(sin)) == 0 && getsockname(s, (struct sockaddr *)&sin, &len) == 0 && (size_t)len >= sizeof(sin) && |