diff options
-rw-r--r-- | usr.sbin/bgpd/rde_sets.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/rde_sets.c b/usr.sbin/bgpd/rde_sets.c index 5621af1bf5f..b533773b6bd 100644 --- a/usr.sbin/bgpd/rde_sets.c +++ b/usr.sbin/bgpd/rde_sets.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde_sets.c,v 1.6 2018/10/26 16:53:55 claudio Exp $ */ +/* $OpenBSD: rde_sets.c,v 1.7 2019/01/05 13:12:35 claudio Exp $ */ /* * Copyright (c) 2018 Claudio Jeker <claudio@openbsd.org> @@ -127,6 +127,7 @@ set_new(size_t nmemb, size_t size) rdemem.aset_cnt++; rdemem.aset_size += sizeof(*set); + rdemem.aset_size += set->size * set->max; return set; } |