Merge "DO NOT MERGE Cherry-pick of 0ee092fb2
from master" into honeycomb
This commit is contained in:
commit
6519756b23
1 changed files with 1 additions and 0 deletions
|
@ -541,6 +541,7 @@ android_getaddrinfo_proxy(
|
||||||
if (fread(&name_len, sizeof(name_len), 1, proxy) != 1) {
|
if (fread(&name_len, sizeof(name_len), 1, proxy) != 1) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
name_len = ntohl(name_len);
|
||||||
if (name_len != 0) {
|
if (name_len != 0) {
|
||||||
ai->ai_canonname = (char*) malloc(name_len);
|
ai->ai_canonname = (char*) malloc(name_len);
|
||||||
if (fread(ai->ai_canonname, name_len, 1, proxy) != 1) {
|
if (fread(ai->ai_canonname, name_len, 1, proxy) != 1) {
|
||||||
|
|
Loading…
Reference in a new issue