diff options
author | David Turner <digit@android.com> | 2011-02-16 18:58:45 -0800 |
---|---|---|
committer | Android Code Review <code-review@android.com> | 2011-02-16 18:58:45 -0800 |
commit | aac93c237034bbca61c69e0712ae6194877aa2cc (patch) | |
tree | c8664077d11cc5211902132bf98fcd0e7803f9ad | |
parent | 69d6c2ccd943f43e87445d00e96eb98deb690ea1 (diff) | |
parent | 066ecc8f4a6ef4195194626875fe32442bf91d56 (diff) | |
download | bionic-aac93c237034bbca61c69e0712ae6194877aa2cc.zip bionic-aac93c237034bbca61c69e0712ae6194877aa2cc.tar.gz bionic-aac93c237034bbca61c69e0712ae6194877aa2cc.tar.bz2 |
Merge "Convert cname lenght before use"
-rw-r--r-- | libc/netbsd/net/getaddrinfo.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libc/netbsd/net/getaddrinfo.c b/libc/netbsd/net/getaddrinfo.c index bb6645c..edb4f70 100644 --- a/libc/netbsd/net/getaddrinfo.c +++ b/libc/netbsd/net/getaddrinfo.c @@ -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) { |