-debug
authorChristian Grothoff <christian@grothoff.org>
Thu, 5 Jan 2012 16:11:17 +0000 (16:11 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 5 Jan 2012 16:11:17 +0000 (16:11 +0000)
src/dns/gnunet-dns-redirector.c
src/dns/gnunet-service-dns_new.c

index 9c0e3962536198d1b4f9cfbb2a15c97402c8b941..cc317e5e424e0901f1487ec6366f14de29aef07f 100644 (file)
@@ -89,7 +89,7 @@ modify_record (const struct GNUNET_DNSPARSER_Record *record)
        fprintf (stderr, 
                 "Changing AAAA record from `%s' to `%s'\n",
                 inet_ntop (AF_INET6, record->data.raw.data, buf, sizeof (buf)),
-                n4);
+                n6);
       inet_pton (AF_INET6, n6, record->data.raw.data);
     }
     break;
index 646b96cdfb323204b121df1d789bc2f9d142bad9..60b3d9384488dd62c829a74366ec07b40acc5e25 100644 (file)
@@ -1060,8 +1060,10 @@ handle_client_response (void *cls GNUNET_UNUSED,
        return;
       }
       GNUNET_free_non_null (rr->payload);
-      GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+#if DEBUG_DNS
+      GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
                  _("Changing DNS reply according to client specifications\n"));
+#endif
       rr->payload = GNUNET_malloc (msize);
       rr->payload_length = msize;
       memcpy (rr->payload, &resp[1], msize);