From 6dd212088e39a0ec600a245c3d7cd0feeee0f311 Mon Sep 17 00:00:00 2001 From: Miek Gieben Date: Thu, 23 Feb 2012 19:49:47 +0100 Subject: [PATCH] clean ups --- TODO.markdown | 2 -- zscan_rr.go | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/TODO.markdown b/TODO.markdown index 9151432f..9dd0afd8 100644 --- a/TODO.markdown +++ b/TODO.markdown @@ -7,8 +7,6 @@ need to be fixed. * go test; only work correct on my machine * Add handy zone data structure (r/b tree)? Or not... * Use the Exchange structure to deal with errors when resolving, esp. Timeout -* SaltLength in NSEC3 is ugly to set, should be automatically done. There are prolly a few more - settings just like that -- need to look at them. edns' NSID is another * Add tsig check in 'q'? ## Examples to add diff --git a/zscan_rr.go b/zscan_rr.go index 15f5f1d2..f63171e5 100644 --- a/zscan_rr.go +++ b/zscan_rr.go @@ -651,7 +651,7 @@ func setNSEC3(h RR_Header, c chan lex, o, f string) (RR, *ParseError) { } <-c l = <-c - rr.SaltLength = uint8(len(l.token)) + rr.SaltLength = uint8(len(l.token))/2 // TODO: token cannot be 0? rr.Salt = l.token <-c