]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
[master] easier to read NSID output
authorEvan Hunt <each@isc.org>
Thu, 8 Aug 2013 23:50:34 +0000 (16:50 -0700)
committerEvan Hunt <each@isc.org>
Thu, 8 Aug 2013 23:50:34 +0000 (16:50 -0700)
3626. [func] dig: NSID output now easier to read. [RT #21160]

CHANGES
lib/dns/message.c

diff --git a/CHANGES b/CHANGES
index a4352161cf6584ccc228690c89ec28b85dd20aab..30ac873d7bd6ef3441f6c9145a32f6b14289801a 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,5 @@
+3626.  [func]          dig: NSID output now easier to read. [RT #21160]
+
 3625.  [bug]           Don't send notify messages to machines outside of the
                        test setup.
 
index aa8d9014452177f484e8878b7190dd40a2c97622..505a093e1c08b398a67eed75784e8762a72d802b 100644 (file)
@@ -3270,16 +3270,17 @@ dns_message_pseudosectiontotext(dns_message_t *msg,
                                        sprintf(buf, "%02x ", optdata[i]);
                                        ADD_STRING(target, buf);
                                }
+
+                               ADD_STRING(target, "(\"");
                                for (i = 0; i < optlen; i++) {
-                                       ADD_STRING(target, " (");
                                        if (isprint(optdata[i]))
                                                isc_buffer_putmem(target,
                                                                  &optdata[i],
                                                                  1);
                                        else
                                                isc_buffer_putstr(target, ".");
-                                       ADD_STRING(target, ")");
                                }
+                               ADD_STRING(target, "\")");
                                isc_buffer_forward(&optbuf, optlen);
                        }
                        ADD_STRING(target, "\n");