diff options
author | iNPUTmice <daniel@gultsch.de> | 2015-04-16 21:55:52 +0200 |
---|---|---|
committer | iNPUTmice <daniel@gultsch.de> | 2015-04-16 21:56:03 +0200 |
commit | c4daa08170f0e468c0407d9db91a0de0415b6bf2 (patch) | |
tree | 889f7dcd4c8ca8d95daa5fe796f6483b4834ca0e /src/main/java/eu/siacs/conversations/utils | |
parent | 584ffbd0009ec57bcbe413857e3d16ff10f376de (diff) |
fixed a bug in DNS helper code. fixes #1130
Diffstat (limited to 'src/main/java/eu/siacs/conversations/utils')
-rw-r--r-- | src/main/java/eu/siacs/conversations/utils/DNSHelper.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/eu/siacs/conversations/utils/DNSHelper.java b/src/main/java/eu/siacs/conversations/utils/DNSHelper.java index bcb2ca442..42dd1c95c 100644 --- a/src/main/java/eu/siacs/conversations/utils/DNSHelper.java +++ b/src/main/java/eu/siacs/conversations/utils/DNSHelper.java @@ -121,7 +121,7 @@ public class DNSHelper { while (p > 0) { p -= s.get(i++).getPriority(); } - i--; + if (i>0) i--; // remove is expensive, but we have only a few entries // anyway SRV srv = s.remove(i); |