Skip to content

Instantly share code, notes, and snippets.

@Habbie
Created April 26, 2013 11:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Habbie/5466760 to your computer and use it in GitHub Desktop.
Save Habbie/5466760 to your computer and use it in GitHub Desktop.
diff -ur pdns-3.1/pdns/packethandler.cc pdns-3.1.new/pdns/packethandler.cc
--- pdns-3.1/pdns/packethandler.cc 2012-08-02 23:29:38.697258699 +0200
+++ pdns-3.1.new/pdns/packethandler.cc 2012-08-02 23:21:46.000000000 +0200
@@ -649,12 +649,10 @@
if (mode == 0 || mode == 5) {
unhashed=target;
}
- else if (mode == 1 || mode == 2 || mode == 4) {
- unhashed=closest;
- }
else {
- unhashed=auth;
+ unhashed=closest;
}
+
hashed=hashQNameWithSalt(ns3rc.d_iterations, ns3rc.d_salt, unhashed);
// L<<"1 hash: "<<toBase32Hex(hashed)<<" "<<unhashed<<endl;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment