Commit Diff
Diff:
a45f27b85d7282ea0d73f0157a7dcb34a32b7bd7
f94265197a64810664030be141b79812be4a0245
Commit:
f94265197a64810664030be141b79812be4a0245
Tree:
255cc31d5ee26d07c1167325bcb42a452ec845d3
Author:
pjp <pjp@delphinusdns.org>
Committer:
pjp <pjp@delphinusdns.org>
Date:
Tue Jul 7 14:22:38 2020 UTC
Message:
value from the wire should be ntohs()'ed before inserted into the database caught by chance...
blob - 08c85b57a832ada5e089a914941cc03ea5d64da3
blob + 5775a0dda79bf5f974081d1639629bf4b4bffc7f
--- raxfr.c
+++ raxfr.c
@@ -26,7 +26,7 @@
*
*/
/*
- * $Id: raxfr.c,v 1.53 2020/07/06 07:17:40 pjp Exp $
+ * $Id: raxfr.c,v 1.54 2020/07/07 14:22:38 pjp Exp $
*/
#include <sys/types.h>
@@ -719,7 +719,8 @@ raxfr_mx(FILE *f, u_char *p, u_char *estart, u_char *e
}
} else {
fill_mx(db, convert_name(name, namelen), "mx", dnsttl,
- mxpriority, (*humanname == '\0' ? "." : humanname));
+ ntohs(mxpriority),
+ (*humanname == '\0' ? "." : humanname));
}
free(humanname);
@@ -1504,7 +1505,7 @@ replicantloop(ddDB *db, struct imsgbuf *ibuf)
}
if (n == 0) {
/* child died? */
- dolog(LOG_INFO, "sigpipe on child? exiting.\n");
+ dolog(LOG_INFO, "sigpipe on child? raxfr process exiting.\n");
continue;
}
repomaster@centroid.eu