aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/util
diff options
context:
space:
mode:
authorIngo Bauersachs <ingo@jitsi.org>2013-04-10 16:06:08 +0000
committerIngo Bauersachs <ingo@jitsi.org>2013-04-10 16:06:08 +0000
commitcfe23304eea868b4144237f9dac7acaecbeb42c2 (patch)
tree1a9202c7deeaf10add1194c4a5364c106f8db109 /src/net/java/sip/communicator/util
parentdeba0f18581577465d00bd91b9dc6b4d4cebf70f (diff)
downloadjitsi-cfe23304eea868b4144237f9dac7acaecbeb42c2.zip
jitsi-cfe23304eea868b4144237f9dac7acaecbeb42c2.tar.gz
jitsi-cfe23304eea868b4144237f9dac7acaecbeb42c2.tar.bz2
Fix NAPTR sorting by preference (reported by Juha Heinanen on dev)
Diffstat (limited to 'src/net/java/sip/communicator/util')
-rw-r--r--src/net/java/sip/communicator/util/NetworkUtils.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/java/sip/communicator/util/NetworkUtils.java b/src/net/java/sip/communicator/util/NetworkUtils.java
index fe481ea..90bbaac 100644
--- a/src/net/java/sip/communicator/util/NetworkUtils.java
+++ b/src/net/java/sip/communicator/util/NetworkUtils.java
@@ -720,7 +720,7 @@ public class NetworkUtils
// Second tries to define the priority with the NAPTR
// preference.
int preference
- = Integer.parseInt(array1[4]) - Integer.parseInt(array2[4]);
+ = Integer.parseInt(array1[3]) - Integer.parseInt(array2[3]);
if(preference != 0)
{
return preference;