Lennart Poettering
59f2725cc8
resolved: fix "in-between" logic when boundaries are equal ( #7590 )
...
This changes dns_name_between() to deal properly with checking whether B
is between A and C if A and C are equal. Previously we simply returned
-EINVAL in this case, refusing checking. With this change we correct
behaviour: if A and C are equal, then B is "between" both if it is
different from them. That's logical, since we do < and > comparisons, not
<= and >=, and that means that anything "right of A" and "left of C"
lies in between with wrap-around at the ends. And if A and C are equal
that means everything lies between, except for A itself.
This fixes handling of domains using NSEC3 "white lies", for example the
.it TLD.
Fixes : #7421
2017-12-14 14:08:21 +09:00
..
2017-11-19 19:08:15 +01:00
2017-03-02 19:11:37 +01:00
2017-12-08 13:34:25 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-12-11 23:19:45 +01:00
2017-12-11 23:18:56 +01:00
2017-12-06 10:32:48 +09:00
2017-11-19 19:08:15 +01:00
2017-12-01 16:49:52 -08:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-12-06 13:40:50 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-12-05 13:49:12 +01:00
2017-12-05 13:49:12 +01:00
2017-12-14 14:08:21 +09:00
2017-12-08 14:29:27 +02:00
2017-12-01 20:34:49 +01:00
2017-11-19 19:08:15 +01:00
2017-11-24 12:00:09 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-21 08:24:12 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-30 20:46:30 +01:00
2017-11-30 20:46:30 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-29 12:32:56 +01:00
2017-11-19 19:08:15 +01:00
2017-11-28 21:30:30 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-08-28 18:49:03 +02:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-24 10:31:49 +00:00
2017-11-19 19:08:15 +01:00
2017-11-28 21:30:43 +01:00
2017-11-28 21:30:43 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-20 13:06:33 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-12-06 10:18:11 +01:00
2017-12-06 10:18:11 +01:00
2017-12-05 18:33:24 +01:00
2017-12-05 18:33:24 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-12-08 19:28:02 +03:00
2017-11-29 12:32:56 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-12-13 15:03:41 -02:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-11-19 19:08:15 +01:00
2017-12-08 11:26:30 -06:00
2017-12-08 11:26:30 -06:00