]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
[expireopt] format expire time
authorEvan Hunt <each@isc.org>
Thu, 20 Feb 2014 03:17:48 +0000 (19:17 -0800)
committerMark Andrews <marka@isc.org>
Thu, 20 Feb 2014 03:57:47 +0000 (14:57 +1100)
lib/dns/message.c

index c77c891b4022b04f519facffd7882d42b6989e5b..e9ad2e8863495e73a0bd3c9a78c6f9e32ab9ea09 100644 (file)
@@ -44,6 +44,7 @@
 #include <dns/rdatastruct.h>
 #include <dns/result.h>
 #include <dns/tsig.h>
+#include <dns/ttl.h>
 #include <dns/view.h>
 
 #ifdef SKAN_MSG_DEBUG
@@ -3307,7 +3308,9 @@ dns_message_pseudosectiontotext(dns_message_t *msg,
                                        ADD_STRING(target, "; EXPIRE: ");
                                        snprintf(buf, sizeof(buf), "%u", secs);
                                        ADD_STRING(target, buf);
-                                       ADD_STRING(target, "\n");
+                                       ADD_STRING(target, " (");
+                                       dns_ttl_totext(secs, ISC_TRUE, target);
+                                       ADD_STRING(target, ")\n");
                                        break;
                                }
                                ADD_STRING(target, "; EXPIRE");