Commit Diff
Diff:
f16d945af5682e05e525ee9c45ebf30dcedc415b
7760c1a7c8e4bb7b578ae58320e989f7a58c6207
Commit:
7760c1a7c8e4bb7b578ae58320e989f7a58c6207
Tree:
8d8b4a2b9220816990d17e6453569651863d4fbf
Author:
pjp <pjp@delphinusdns.org>
Committer:
pjp <pjp@delphinusdns.org>
Date:
Tue Feb 19 07:17:37 2019 UTC
Message:
using TAILQ_INSERT_HEAD changed the order of the resource records backwards, apparently the dddctl code wants it in the order as it's presented in the zone file in order to sign with sign_sshfp() and correctly. This is a fault in the sign_sshfp but for a temporary fixup changing the TAILQ_INSERT_HEAD to TAILQ_INSERT_TAIL seems to work.
blob - 5dd95b84a769a5e0977c3ee087c0f25f861c1606
blob + 660651b4292e7903367dbe0cfa47579be14595fd
--- db.c
+++ db.c
@@ -27,7 +27,7 @@
*/
/*
- * $Id: db.c,v 1.7 2019/02/18 14:59:55 pjp Exp $
+ * $Id: db.c,v 1.8 2019/02/19 07:17:37 pjp Exp $
*/
#include "ddd-include.h"
@@ -221,7 +221,7 @@ create_rr(ddDB *db, char *name, int len, int type, voi
myrr->rdata = rdata;
myrr->changed = time(NULL);
- TAILQ_INSERT_HEAD(&rrset->rr_head, myrr, entries);
+ TAILQ_INSERT_TAIL(&rrset->rr_head, myrr, entries);
return (rbt);
}
repomaster@centroid.eu