commit | bd9b3cf55be5843eee108658acb05a494645caad | [log] [tgz] |
---|---|---|
author | Simon Kelley <simon@thekelleys.org.uk> | Sat Mar 01 16:12:28 2014 +0000 |
committer | Simon Kelley <simon@thekelleys.org.uk> | Sat Mar 01 16:12:28 2014 +0000 |
tree | 407ff60ada539fb842d34bd012c61c3ba21caf48 | |
parent | 14db4212ab3a4de8d15b9f3f3663e8c9065f1f83 [diff] |
Fix off-by-one overwrite.
diff --git a/src/dnssec.c b/src/dnssec.c index 0f95f4a..2d00570 100644 --- a/src/dnssec.c +++ b/src/dnssec.c
@@ -353,7 +353,8 @@ l[len] = '.'; } - *(l-1) = 0; + if (l != name) + *(l-1) = 0; } /* Input in presentation format */