commit | 6445c8ed73ee54b1654eb1da5a0fc468003b61e0 | [log] [tgz] |
---|---|---|
author | Giovanni Bajo <rasky@develer.com> | Tue Apr 24 02:02:29 2012 +0200 |
committer | Simon Kelley <simon@thekelleys.org.uk> | Tue Aug 20 15:41:18 2013 +0100 |
tree | e11a3507e2dd1722c683e3aab05a4714a0ea05c9 | |
parent | 382e38f4945316f11c814bcf9c625bf718856f82 [diff] |
Fix off-by-one in iteration.
diff --git a/src/dnssec.c b/src/dnssec.c index ad34557..3fef946 100644 --- a/src/dnssec.c +++ b/src/dnssec.c
@@ -58,7 +58,7 @@ while (rr < end && *rr != 0) { count = *rr++; - while (count-- >= 0 && rr < end) + while (count-- > 0 && rr < end) { *buf = *rr++; if (!isascii(*buf) || iscntrl(*buf) || *buf == '.')