aboutsummaryrefslogtreecommitdiffstats
path: root/src/ipaccess-find.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2009-05-01 14:53:36 +0000
committerHarald Welte <laforge@gnumonks.org>2009-05-01 14:53:36 +0000
commit4593ff3ace523272acd62e1ccac946b634438390 (patch)
tree3695c81ae109dbb722e4af77639fe6621aabff82 /src/ipaccess-find.c
parent23897662c71ea25868eb0069463f2919dea14e12 (diff)
ensure the tag parsing function is the same as used in input/ipaccess.c
FIXME: remove this copy of the code
Diffstat (limited to 'src/ipaccess-find.c')
-rw-r--r--src/ipaccess-find.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/ipaccess-find.c b/src/ipaccess-find.c
index 63a5de10e..bada3b259 100644
--- a/src/ipaccess-find.c
+++ b/src/ipaccess-find.c
@@ -98,8 +98,6 @@ static int parse_response(unsigned char *buf, int len)
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 @@ static int read_response(int fd)
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)