diff options
author | Gary Benson <gbenson@redhat.com> | 2006-10-05 14:50:02 +0000 |
---|---|---|
committer | Gary Benson <gbenson@redhat.com> | 2006-10-05 14:50:02 +0000 |
commit | 06a80be7b01f5c864c737d78ae3dff88a136e483 (patch) | |
tree | e25cd29b55488a232374f3a480b3ab965840cbf3 /java/net | |
parent | 14cd624f21df4e239199f694e0c11ceb14b90a6f (diff) | |
download | classpath-06a80be7b01f5c864c737d78ae3dff88a136e483.tar.gz |
2006-10-05 Gary Benson <gbenson@redhat.com>
* java/net/Socket.java
(Socket): Perform security check on address not hostname.
Diffstat (limited to 'java/net')
-rw-r--r-- | java/net/Socket.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/java/net/Socket.java b/java/net/Socket.java index 63ba43727..439c29326 100644 --- a/java/net/Socket.java +++ b/java/net/Socket.java @@ -291,7 +291,7 @@ public class Socket SecurityManager sm = System.getSecurityManager(); if (sm != null) - sm.checkConnect(raddr.getHostName(), rport); + sm.checkConnect(raddr.getHostAddress(), rport); // bind socket SocketAddress bindaddr = |