Resolve next hop address before accessing an uninitialized field

cusax-fix
Ingo Bauersachs 15 years ago
parent de82115ab1
commit 70e825d28a

@ -2258,7 +2258,18 @@ public InetSocketAddress getIntendedDestination(String host)
(SipAccountID)getAccountID(),
host,
getDefaultTransport());
destinationInetAddress = tempConn.getAddress();
try
{
if(tempConn.getNextAddress())
destinationInetAddress = tempConn.getAddress();
else
throw new IllegalArgumentException(host
+ " could not be resolved to an internet address.");
}
catch (DnssecException e)
{
logger.error("unable to obtain next hop address", e);
}
}
if(logger.isDebugEnabled())

Loading…
Cancel
Save