diff options
Diffstat (limited to 'zebra/zserv.c')
-rw-r--r-- | zebra/zserv.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/zebra/zserv.c b/zebra/zserv.c index dfaa90e7..e74248b1 100644 --- a/zebra/zserv.c +++ b/zebra/zserv.c @@ -1110,18 +1110,13 @@ zebra_read_ipv6 (int command, struct zserv *client, u_short length) u_char type; u_char flags; struct in6_addr nexthop, *gate; - u_char *lim; - u_char *pnt; unsigned int ifindex; - pnt = stream_pnt (client->ibuf); - lim = pnt + length; - type = stream_getc (client->ibuf); flags = stream_getc (client->ibuf); stream_get (&nexthop, client->ibuf, sizeof (struct in6_addr)); - while (stream_pnt (client->ibuf) < lim) + while (STREAM_READABLE (client->ibuf)) { int size; struct prefix_ipv6 p; |