import of dnsmasq-2.22.tar.gz

This commit is contained in:
Simon Kelley
2005-03-31 17:48:32 +01:00
parent 0a852541d3
commit 91dccd0958
13 changed files with 350 additions and 188 deletions

View File

@@ -340,7 +340,8 @@ static unsigned char *skip_section(unsigned char *ansp, int count, HEADER *heade
We ignore case in the names for the same reason. */
unsigned int questions_crc(HEADER *header, unsigned int plen, char *name)
{
unsigned int q, crc = 0xffffffff;
int q;
unsigned int crc = 0xffffffff;
unsigned char *p1, *p = (unsigned char *)(header+1);
for (q = 0; q < ntohs(header->qdcount); q++)