i simply do not learn
authorPhilipp Tölke <toelke@in.tum.de>
Wed, 26 Oct 2011 12:30:43 +0000 (12:30 +0000)
committerPhilipp Tölke <toelke@in.tum.de>
Wed, 26 Oct 2011 12:30:43 +0000 (12:30 +0000)
src/vpn/gnunet-service-dns.c

index 7e649d88b2f532dab4ca17e7e0e54261bf8d32ff..47e8cc8ae7f6892bc210a8886f875eb5a794567d 100644 (file)
@@ -821,7 +821,7 @@ receive_query (void *cls
           query_states[dns->s.id].namelen);
 
   int i;
-  for (i= 0; i < pdns->s.qdcount; i++)
+  for (i= 0; i < ntohs(pdns->s.qdcount); i++)
     {
       if (pdns->queries[i]->qtype == htons(28) ||
           pdns->queries[i]->qtype == htons(28))