Commit Diff
Diff:
498df036f7e8f7f156ad33ae95a3325f401c4258
c77ce611686712e63160be345fccf8295ea5e05b
Commit:
c77ce611686712e63160be345fccf8295ea5e05b
Tree:
5a0e792d59c3629e28b455d28180b61b688d25b6
Author:
pjp <pjp@delphinusdns.org>
Committer:
pjp <pjp@delphinusdns.org>
Date:
Mon Feb 11 17:38:55 2019 UTC
Message:
fix NSEC3 parsing, this one was spotted and XXX'ed earlier, I wasn't sure but now there was some time to check this. The + 1 is erroneous.
blob - 5cf491e382cd30100a5faac35469b6329a5dacd7
blob + 84a4aa3bed313ca21f942793766dada9dd4b5b6b
--- raxfr.c
+++ raxfr.c
@@ -26,7 +26,7 @@
*
*/
/*
- * $Id: raxfr.c,v 1.8 2019/02/11 15:25:02 pjp Exp $
+ * $Id: raxfr.c,v 1.9 2019/02/11 17:38:55 pjp Exp $
*/
#include "ddd-include.h"
@@ -630,7 +630,7 @@ raxfr_nsec3(FILE *f, u_char *p, u_char *estart, u_char
return -1;
/* XXX */
- n.bitmap_len = (rdlen - (p - brr)) + 1;
+ n.bitmap_len = (rdlen - (p - brr));
if (n.bitmap_len > sizeof(n.bitmap))
return -1;
repomaster@centroid.eu