diff options
author | Nick Kralevich <nnk@google.com> | 2013-02-21 21:22:54 -0800 |
---|---|---|
committer | Nick Kralevich <nnk@google.com> | 2013-02-21 21:34:11 -0800 |
commit | bfe0640e41204ccc090c364e02675de10d87c923 (patch) | |
tree | daa3d3eff916fb7fc14aa924a70312c85a90468f /libc/netbsd/net/getaddrinfo.c | |
parent | 7dfc6a3cd178281c1005a94e84ce5359b23e612f (diff) | |
download | android_bionic-bfe0640e41204ccc090c364e02675de10d87c923.tar.gz android_bionic-bfe0640e41204ccc090c364e02675de10d87c923.tar.bz2 android_bionic-bfe0640e41204ccc090c364e02675de10d87c923.zip |
Don't pass pid to dnsproxyd
dnsproxyd can already determine our pid by looking at our
socket connection. It's dangerous (and unneeded) to pass it
ourselves.
Change-Id: I2596d02e361b302259ddb084be2fb75be59889c5
Diffstat (limited to 'libc/netbsd/net/getaddrinfo.c')
-rw-r--r-- | libc/netbsd/net/getaddrinfo.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libc/netbsd/net/getaddrinfo.c b/libc/netbsd/net/getaddrinfo.c index aed6b9499..896055da6 100644 --- a/libc/netbsd/net/getaddrinfo.c +++ b/libc/netbsd/net/getaddrinfo.c @@ -446,15 +446,14 @@ android_getaddrinfo_proxy( // Send the request. proxy = fdopen(sock, "r+"); - if (fprintf(proxy, "getaddrinfo %s %s %d %d %d %d %s %d", + if (fprintf(proxy, "getaddrinfo %s %s %d %d %d %d %s", hostname == NULL ? "^" : hostname, servname == NULL ? "^" : servname, hints == NULL ? -1 : hints->ai_flags, hints == NULL ? -1 : hints->ai_family, hints == NULL ? -1 : hints->ai_socktype, hints == NULL ? -1 : hints->ai_protocol, - iface == NULL ? "^" : iface, - getpid()) < 0) { + iface == NULL ? "^" : iface) < 0) { goto exit; } // literal NULL byte at end, required by FrameworkListener |