Kaydet (Commit) 0db950de authored tarafından Norbert Thiebaud's avatar Norbert Thiebaud

bug wrong order of test cause out of bound access.

Change-Id: If9c497473bc163677175b0fda1f3a8975cceb3dd
üst 0cac63da
......@@ -496,8 +496,8 @@ const InternetProxyServer & InternetProxyDecider_Impl::getProxy(
OUString aHost;
if ( ( rHost[ 0 ] == '[' ) &&
( rHost.getLength() > 1 ) )
if ( ( rHost.getLength() > 1 ) &&
( rHost[ 0 ] == '[' ))
{
// host is given as numeric IPv6 address. name resolution
// functions need hostname without square brackets.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment