ensure the tag parsing function is the same as used in input/ipaccess.c
FIXME: remove this copy of the code
diff --git a/src/ipaccess-find.c b/src/ipaccess-find.c
index 63a5de1..bada3b2 100644
--- a/src/ipaccess-find.c
+++ b/src/ipaccess-find.c
@@ -98,8 +98,6 @@
u_int8_t t_tag;
u_int8_t *cur = buf;
- cur += 6;
-
while (cur < buf + len) {
t_len = *cur++;
t_tag = *cur++;
@@ -123,7 +121,7 @@
if (len < 0)
return len;
- return parse_response(buf, len);
+ return parse_response(buf+6, len-6);
}
static int bfd_cb(struct bsc_fd *bfd, unsigned int flags)