Skip to content

Commit

Permalink
8314481: JDWPTRANSPORT_ERROR_INTERNAL code in socketTransport.c can n…
Browse files Browse the repository at this point in the history
…ever be executed

Reviewed-by: dcubed, sspitsyn
  • Loading branch information
plummercj committed Aug 18, 2023
1 parent 50a2ce0 commit fbe28ee
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -736,15 +736,10 @@ socketTransport_startListening(jdwpTransportEnv* env, const char* address,
}

if (listenAddr == NULL) {
// No address of preferred address family found, grab the fist one.
// No address of preferred address family found, grab the first one.
listenAddr = &(addrInfo[0]);
}

if (listenAddr == NULL) {
dbgsysFreeAddrInfo(addrInfo);
RETURN_ERROR(JDWPTRANSPORT_ERROR_INTERNAL, "listen failed: wrong address");
}

// Binding to IN6ADDR_ANY allows to serve both IPv4 and IPv6 connections,
// but binding to mapped INADDR_ANY (::ffff:0.0.0.0) allows to serve IPv4
// connections only. Make sure that IN6ADDR_ANY is preferred over
Expand Down

1 comment on commit fbe28ee

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.