From: W.C.A. Wijngaards Date: Wed, 27 Mar 2024 11:30:00 +0000 (+0100) Subject: - Fix comment in lruhash space function. X-Git-Tag: release-1.20.0rc1~49 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fe393ac355b20e961f7465f3abb779f6096df9cb;p=thirdparty%2Funbound.git - Fix comment in lruhash space function. --- diff --git a/doc/Changelog b/doc/Changelog index 1b73bf547..2d46e7199 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -3,6 +3,7 @@ - Fix #1032: The size of subnet_msg_cache calculation mistake cause memory usage increased beyond expectations. - Fix for #1032, add safeguard to make table space positive. + - Fix comment in lruhash space function. 25 March 2024: Yorgos - Merge #831 from Pierre4012: Improve Windows NSIS installer diff --git a/util/storage/lruhash.c b/util/storage/lruhash.c index f14e83b56..aba9fcc1d 100644 --- a/util/storage/lruhash.c +++ b/util/storage/lruhash.c @@ -540,7 +540,7 @@ lruhash_update_space_used(struct lruhash* table, void* cb_arg, int diff_size) if(cb_arg == NULL) cb_arg = table->cb_arg; - /* find bin */ + /* update space used */ lock_quick_lock(&table->lock); if((int)table->space_used + diff_size < 0)