aboutsummaryrefslogtreecommitdiff
path: root/src/vpn
diff options
context:
space:
mode:
authorPhilipp Tölke <toelke@in.tum.de>2011-10-26 11:41:33 +0000
committerPhilipp Tölke <toelke@in.tum.de>2011-10-26 11:41:33 +0000
commit6a1a61e90c1f483687cefa1d5838982d04cb995f (patch)
treefe71be7758f4fb4814ff244d010631d440605ab3 /src/vpn
parent9c14b87286ed7994e38bc422efb01989adbac5ae (diff)
downloadgnunet-6a1a61e90c1f483687cefa1d5838982d04cb995f.tar.gz
gnunet-6a1a61e90c1f483687cefa1d5838982d04cb995f.zip
nbo strikes again
Diffstat (limited to 'src/vpn')
-rw-r--r--src/vpn/gnunet-service-dns.c8
1 files changed, 4 insertions, 4 deletions
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
981 981
982 if (pdns->s.qdcount == 1) 982 if (pdns->s.qdcount == 1)
983 { 983 {
984 if (pdns->queries[0]->qtype == 1) 984 if (ntohs(pdns->queries[0]->qtype) == 1)
985 pdns->queries[0]->qtype = 28; 985 pdns->queries[0]->qtype = htons(28);
986 else if (pdns->queries[0]->qtype == 28) 986 else if (ntohs(pdns->queries[0]->qtype) == 28)
987 pdns->queries[0]->qtype = 1; 987 pdns->queries[0]->qtype = htons(1);
988 else 988 else
989 goto outfree; 989 goto outfree;
990 struct dns_pkt *rdns = unparse_dns_packet (pdns); 990 struct dns_pkt *rdns = unparse_dns_packet (pdns);