-bugfix
authorChristian Grothoff <christian@grothoff.org>
Thu, 5 Jan 2012 16:07:31 +0000 (16:07 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 5 Jan 2012 16:07:31 +0000 (16:07 +0000)
src/dns/dns_api_new.c
src/dns/gnunet-service-dns_new.c

index b578c3a9d9179aeaf8911bbce628144753bebbc9..9e479fce767f9dad9b008ce29b22a5f11ea2795a 100644 (file)
@@ -465,7 +465,7 @@ GNUNET_DNS_request_answer (struct GNUNET_DNS_RequestHandle *rh,
   qe->msg = &resp->header;
   resp->header.size = htons (sizeof (struct GNUNET_DNS_Response) + reply_length);
   resp->header.type = htons (GNUNET_MESSAGE_TYPE_DNS_CLIENT_RESPONSE);
-  resp->drop_flag = htons (2);
+  resp->drop_flag = htonl (2);
   resp->request_id = rh->request_id;
   memcpy (&resp[1], reply, reply_length);
   queue_reply (rh->dh, qe);
index e32198b115a1dd9d231cf51e3b0beaa62c243da5..646b96cdfb323204b121df1d789bc2f9d142bad9 100644 (file)
@@ -1061,8 +1061,9 @@ handle_client_response (void *cls GNUNET_UNUSED,
       }
       GNUNET_free_non_null (rr->payload);
       GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
-                 _("Changing DNS resply according to client specifications\n"));
+                 _("Changing DNS reply according to client specifications\n"));
       rr->payload = GNUNET_malloc (msize);
+      rr->payload_length = msize;
       memcpy (rr->payload, &resp[1], msize);
       if (rr->phase == RP_QUERY)
       {