summaryrefslogtreecommitdiffstats
path: root/proto
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-05-08 16:32:19 +0200
committerMartin Mares <mj@ucw.cz>2000-05-08 16:32:19 +0200
commit9ff8f334edec974b16497e1e74172977e0fff221 (patch)
tree9234ef6274043bda4cffd718cbb23ff34558f1d9 /proto
parentd69e5ff2ad8b552c22770e4c85bd7c5afafe2816 (diff)
downloadbird-9ff8f334edec974b16497e1e74172977e0fff221.tar
bird-9ff8f334edec974b16497e1e74172977e0fff221.zip
Update `remains' counter correctly.
Diffstat (limited to 'proto')
-rw-r--r--proto/bgp/packets.c1
1 files changed, 1 insertions, 0 deletions
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);
}