Merge "DO NOT MERGE Cherry-pick of 0ee092fb2 from master" into honeycomb

This commit is contained in:
Jason Chen 2011-03-01 17:48:25 -08:00 committed by Android (Google) Code Review
commit 6519756b23

View file

@ -541,6 +541,7 @@ android_getaddrinfo_proxy(
if (fread(&name_len, sizeof(name_len), 1, proxy) != 1) {
break;
}
name_len = ntohl(name_len);
if (name_len != 0) {
ai->ai_canonname = (char*) malloc(name_len);
if (fread(ai->ai_canonname, name_len, 1, proxy) != 1) {