8314481: JDWPTRANSPORT_ERROR_INTERNAL code in socketTransport.c can never be executed
Reviewed-by: dcubed, sspitsyn
This commit is contained in:
parent
50a2ce01f4
commit
fbe28ee90d
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user