summaryrefslogtreecommitdiff
path: root/ucbhelper
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2014-09-11 18:14:42 +0200
committerNorbert Thiebaud <nthiebaud@gmail.com>2014-09-12 01:45:29 +0200
commit0db950ded89aa916fba40d27479a6722ec9a05c7 (patch)
tree97fcfef35a051898a6c2d46a3c56b1cf4fc54d77 /ucbhelper
parent0cac63da2347afcc358ef9e24f1906614b4d2606 (diff)
bug wrong order of test cause out of bound access.
Change-Id: If9c497473bc163677175b0fda1f3a8975cceb3dd
Diffstat (limited to 'ucbhelper')
-rw-r--r--ucbhelper/source/client/proxydecider.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/ucbhelper/source/client/proxydecider.cxx b/ucbhelper/source/client/proxydecider.cxx
index 66ff40654920..f5e1b3ebb6b4 100644
--- a/ucbhelper/source/client/proxydecider.cxx
+++ b/ucbhelper/source/client/proxydecider.cxx
@@ -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.