aboutsummaryrefslogtreecommitdiff
path: root/pickdns.c
diff options
context:
space:
mode:
Diffstat (limited to 'pickdns.c')
-rw-r--r--pickdns.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pickdns.c b/pickdns.c
index 28c4ba5..aa74dd8 100644
--- a/pickdns.c
+++ b/pickdns.c
@@ -20,7 +20,7 @@ static struct cdb c;
static char key[258];
static char data[512];
-static int doit(char *q,char qtype[2],char ip[4])
+static int doit(char *q,char qtype[2],char ip[16])
{
int r;
uint32 dlen;
@@ -37,7 +37,7 @@ static int doit(char *q,char qtype[2],char ip[4])
if (!flaga && !flagmx) goto REFUSE;
key[0] = '%';
- byte_copy(key + 1,4,ip);
+ byte_copy(key + 1,4,ip+12);
r = cdb_find(&c,key,5);
if (!r) r = cdb_find(&c,key,4);
@@ -86,7 +86,7 @@ static int doit(char *q,char qtype[2],char ip[4])
return 1;
}
-int respond(char *q,char qtype[2],char ip[4])
+int respond(char *q,char qtype[2],char ip[16])
{
int fd;
int result;