{
char** args = NULL;
int inc;
-@@ -53,7 +53,7 @@
+@@ -53,7 +53,7 @@ char** split(char* str, const char* del,
}
/*
**
** remove length elements from array starting at offset
** All trailing elements will be left aligned
-@@ -70,7 +70,7 @@
+@@ -70,7 +70,7 @@ char** split(char* str, const char* del,
** Returns the number of elements removed
*/
+int array_splice(void**, int, int, int);
--- a/ipupdate.c
+++ b/ipupdate.c
-@@ -295,7 +295,7 @@
+@@ -295,7 +295,7 @@ int DoUpdate(int check)
free(zone->keyname);
free(server->zones[j]);
continue;
}
-@@ -317,7 +317,7 @@
+@@ -317,7 +317,7 @@ int DoUpdate(int check)
free(server->zones);
free(cfg.servers[i]);
continue;
}
i++;
-@@ -414,7 +414,7 @@
+@@ -414,7 +414,7 @@ int checkcname(int *s, struct server *se
asprintf(&msg, "checkcname: server %s: zone %s: host %s: host disabled", server->name, zone->name, zone->hosts[i]);
PostMsgFree(msg);
continue;
}
-@@ -446,7 +446,7 @@
+@@ -446,7 +446,7 @@ int checkcname(int *s, struct server *se
asprintf(&msg, "checkcname: server %s: zone %s: host %s: host disabled", server->name, zone->name, zone->hosts[i]);
PostMsgFree(msg);
continue;
}
//append the record to the packet
-@@ -488,7 +488,7 @@
+@@ -488,7 +488,7 @@ int checkcname(int *s, struct server *se
asprintf(&msg, "checkcname: server %s: zone %s: host %s: host disabled", server->name, zone->name, zone->hosts[i]);
PostMsgFree(msg);
continue;
}
-@@ -561,7 +561,7 @@
+@@ -561,7 +561,7 @@ int checkip(int *s, struct server *serve
asprintf(&msg, "checkip: server %s: zone %s: host %s: host disabled", server->name, zone->name, zone->hosts[i]);
PostMsgFree(msg);
continue;
--- a/config.c
+++ b/config.c
-@@ -873,7 +873,7 @@
+@@ -873,7 +873,7 @@ void cfg_zone(struct server *server, str
switch (cfg_readblock(data, &term, &ptr)) {
case CFG_QUOTED:
zone->hostp = term;
--- /dev/null
+--- a/include/dns.c
++++ b/include/dns.c
+@@ -127,7 +127,7 @@ int dns_t2wtsig(char *pktdata, unsigned
+ tsig.hitime = 0;
+ tsig.lotime = htonl(signtime);
+ tsig.fudge = htons(fudge);
+- tsig.macsize = 0x1000; //16
++ tsig.macsize = htons(16);
+ memset(tsig.mac, 0, 16);
+ memcpy(&tsig.id, pktdata, 2);
+ tsig.error = 0;