Skip to content
Permalink
Browse files

[GR-14277] Use the proper socket address length value (#1025).

PullRequest: graal/3068
  • Loading branch information...
cstancu committed Mar 5, 2019
2 parents 66c63ae + e8e35fb commit e35ad4291478fef66d54cb92f4cce49773eb2c3f
@@ -999,7 +999,7 @@ protected Object socketGetOption(int opt) throws SocketException {
if (opt == SocketOptions.SO_BINDADDR) {
// 1755 /* find out local IP address */
// 1756 SOCKADDR him;
Socket.sockaddr him = StackValue.get(Socket.sockaddr.class);
Socket.sockaddr him = StackValue.get(JavaNetNetUtilMD.SOCKADDR_LEN());

This comment has been minimized.

Copy link
@cstancu
// 1757 socklen_t len = 0;
CIntPointer len_Pointer = StackValue.get(CIntPointer.class);
// 1758 int port;
@@ -1638,7 +1638,7 @@ protected void connect0(InetAddress address, int port) throws SocketException {
int fd;
// 260 /* The packetAddress address, family and port */
// 261 SOCKADDR rmtaddr;
Socket.sockaddr rmtaddr = StackValue.get(Socket.sockaddr.class);
Socket.sockaddr rmtaddr = StackValue.get(JavaNetNetUtilMD.SOCKADDR_LEN());

// 262 int len = 0;
CIntPointer len_Pointer = StackValue.get(CIntPointer.class);

1 comment on commit e35ad42

@bobmcwhirter

This comment has been minimized.

Copy link
Contributor

commented on e35ad42 Mar 6, 2019

Well shucks. Thanks.

Please sign in to comment.
You can’t perform that action at this time.