Merge "Convert cname lenght before use"
This commit is contained in:
commit
aac93c2370
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) {
|
||||
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) {
|
||||
|
|
Loading…
Reference in a new issue