zone.lisp: Fix `:sshfp' handling of literals.
authorMark Wooding <mdw@distorted.org.uk>
Tue, 15 Apr 2014 13:53:39 +0000 (14:53 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Tue, 15 Apr 2014 15:47:05 +0000 (16:47 +0100)
It was, unfortunately, completely broken.

zone.lisp

index f497037..a6c4944 100644 (file)
--- a/zone.lisp
+++ b/zone.lisp
                 (fixnum what)
                 (symbol (or (get what prop)
                             (error "~S is not a known ~A" what prop))))))
-       (dolist (item (listify data)
-                (destructuring-bind (fpr &key (alg 'rsa) (type 'sha-1))
-                    (listify item)
-                  (rec :data (list (lookup alg 'sshfp-algorithm)
-                                   (lookup type 'sshfp-type)
-                                   fpr))))))))
+       (dolist (item (listify data))
+         (destructuring-bind (fpr &key (alg 'rsa) (type 'sha-1))
+             (listify item)
+           (rec :data (list (lookup alg 'sshfp-algorithm)
+                            (lookup type 'sshfp-type)
+                            fpr)))))))
 
 (defzoneparse :mx (name data rec :zname zname)
   ":mx ((HOST :prio INT :ip IPADDR)*)"