Commit Diff
Diff:
82b9ddd092c7cf5c1dfe65dae96f4d065c3b1697
318ac15875cf0b3b46b9170783589237aafba5ef
Commit:
318ac15875cf0b3b46b9170783589237aafba5ef
Tree:
d80d78abb11c49e1a4ed3df2c5e5a15cc6238d01
Author:
pjp <pjp@delphinusdns.org>
Committer:
pjp <pjp@delphinusdns.org>
Date:
Fri Jan 31 18:27:03 2020 UTC
Message:
a bug was exposed on Linux that wasn't recognized fully before. Here we fix the formatting strings for serials, one is a int64_t thus %lld and the other is a uint32_t and was recommended by gcc to be %d in a test program. tested on OpenBSD/octeon and it was satisfied with this, thus passed.
blob - c99812bdf33f9fe0393050d3f3d00a2538853dc0
blob + ea663793864b7ccaf53d47da54a38868e291ef27
--- raxfr.c
+++ raxfr.c
@@ -26,7 +26,7 @@
*
*/
/*
- * $Id: raxfr.c,v 1.47 2020/01/14 12:42:05 pjp Exp $
+ * $Id: raxfr.c,v 1.48 2020/01/31 18:27:03 pjp Exp $
*/
#include <sys/types.h>
@@ -1497,7 +1497,7 @@ replicantloop(ddDB *db, struct imsgbuf *ibuf, struct i
/* schedule a retry and go on */
} else if (serial > lrz->soa.serial) {
/* initiate AXFR and update zone */
- dolog(LOG_INFO, "zone %s new higher serial detected (%ld vs. %ld)\n", lrz->zonename, serial, lrz->soa.serial);
+ dolog(LOG_INFO, "zone %s new higher serial detected (%lld vs. %d)\n", lrz->zonename, serial, lrz->soa.serial);
if (pull_rzone(lrz, now) < 0) {
dolog(LOG_ERR, "AXFR for zone %s failed\n", lrz->zonename);
repomaster@centroid.eu