ensure the tag parsing function is the same as used in input/ipaccess.c

FIXME: remove this copy of the code
This commit is contained in:
Harald Welte 2009-05-01 14:53:36 +00:00
parent 23897662c7
commit 4593ff3ace
1 changed files with 1 additions and 3 deletions

View File

@ -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)