From 9ff8f334edec974b16497e1e74172977e0fff221 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Mon, 8 May 2000 14:32:19 +0000 Subject: Update `remains' counter correctly. --- proto/bgp/packets.c | 1 + 1 file changed, 1 insertion(+) (limited to 'proto') diff --git a/proto/bgp/packets.c b/proto/bgp/packets.c index 88d960d..7a866fc 100644 --- a/proto/bgp/packets.c +++ b/proto/bgp/packets.c @@ -62,6 +62,7 @@ bgp_encode_prefixes(struct bgp_proto *p, byte *w, struct bgp_bucket *buck, unsig ipa_hton(a); memcpy(w, &a, bytes); w += bytes; + remains -= bytes; rem_node(&px->bucket_node); fib_delete(&p->prefix_fib, px); } -- cgit v1.2.3