--- a/jdk/src/share/classes/sun/net/NetworkClient.java Thu Mar 28 06:55:42 2013 -0400
+++ b/jdk/src/share/classes/sun/net/NetworkClient.java Thu Mar 28 14:34:18 2013 -0700
@@ -200,7 +200,13 @@
protected InetAddress getLocalAddress() throws IOException {
if (serverSocket == null)
throw new IOException("not connected");
- return serverSocket.getLocalAddress();
+ return AccessController.doPrivileged(
+ new PrivilegedAction<InetAddress>() {
+ public InetAddress run() {
+ return serverSocket.getLocalAddress();
+
+ }
+ });
}
/** Close an open connection to the server. */