chiark / gitweb /
resolve: fix redirection loops in compressed RR
authorStanisław Pitucha <viraptor@gmail.com>
Tue, 18 Nov 2014 05:25:20 +0000 (16:25 +1100)
committerDavid Herrmann <dh.herrmann@gmail.com>
Thu, 27 Nov 2014 15:35:56 +0000 (16:35 +0100)
commitc75dbf9bea577057c5a6ee3d52db6e13aa6caa57
tree05b979b3a0e7f03851528404abaf284b711f45d5
parentc21b92ffe7ef939dd32502ac912cf8ad1c5638fd
resolve: fix redirection loops in compressed RR

Loops in RR compression were only detected for the first entry.
Multiple redirections should be allowed, each one checking for an
infinite loop on its own starting point.
Also update the pointer on each redirection to avoid longer loops of
labels and redirections, in names like:
(start) [len=1] "A", [ptr to start]

(David: rename variable to "jump_barrier" and add reference to RFC)
src/resolve/resolved-dns-packet.c