diff options
Diffstat (limited to 'lib/kernel/src/inet_dns.erl')
-rw-r--r-- | lib/kernel/src/inet_dns.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/kernel/src/inet_dns.erl b/lib/kernel/src/inet_dns.erl index e03f124fe6..18103771dc 100644 --- a/lib/kernel/src/inet_dns.erl +++ b/lib/kernel/src/inet_dns.erl @@ -697,7 +697,7 @@ encode_labels(Bin, Comp0, Pos, [L|Ls]=Labels) when 1 =< byte_size(L), byte_size(L) =< 63 -> case gb_trees:lookup(Labels, Comp0) of none -> - Comp = if Pos < (3 bsl 14) -> + Comp = if Pos < (1 bsl 14) -> %% Just in case - compression %% pointers cannot reach further gb_trees:insert(Labels, Pos, Comp0); |