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);
}
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)
{