From 06a80be7b01f5c864c737d78ae3dff88a136e483 Mon Sep 17 00:00:00 2001 From: Gary Benson Date: Thu, 5 Oct 2006 14:50:02 +0000 Subject: 2006-10-05 Gary Benson * java/net/Socket.java (Socket): Perform security check on address not hostname. --- java/net/Socket.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'java/net') 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 = -- cgit v1.2.1