From: Philipp Tölke Date: Wed, 26 Oct 2011 11:41:33 +0000 (+0000) Subject: nbo strikes again X-Git-Tag: initial-import-from-subversion-38251~16230 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6a1a61e90c1f483687cefa1d5838982d04cb995f;p=oweals%2Fgnunet.git nbo strikes again --- diff --git a/src/vpn/gnunet-service-dns.c b/src/vpn/gnunet-service-dns.c index dddb87be9..700940904 100644 --- a/src/vpn/gnunet-service-dns.c +++ b/src/vpn/gnunet-service-dns.c @@ -981,10 +981,10 @@ receive_query (void *cls if (pdns->s.qdcount == 1) { - if (pdns->queries[0]->qtype == 1) - pdns->queries[0]->qtype = 28; - else if (pdns->queries[0]->qtype == 28) - pdns->queries[0]->qtype = 1; + if (ntohs(pdns->queries[0]->qtype) == 1) + pdns->queries[0]->qtype = htons(28); + else if (ntohs(pdns->queries[0]->qtype) == 28) + pdns->queries[0]->qtype = htons(1); else goto outfree; struct dns_pkt *rdns = unparse_dns_packet (pdns);