From cfe23304eea868b4144237f9dac7acaecbeb42c2 Mon Sep 17 00:00:00 2001 From: Ingo Bauersachs Date: Wed, 10 Apr 2013 16:06:08 +0000 Subject: [PATCH] Fix NAPTR sorting by preference (reported by Juha Heinanen on dev) --- src/net/java/sip/communicator/util/NetworkUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net/java/sip/communicator/util/NetworkUtils.java b/src/net/java/sip/communicator/util/NetworkUtils.java index fe481ea71..90bbaac09 100644 --- a/src/net/java/sip/communicator/util/NetworkUtils.java +++ b/src/net/java/sip/communicator/util/NetworkUtils.java @@ -720,7 +720,7 @@ public int compare(String array1[], String array2[]) // 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;