diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-12-23 19:48:21 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-12-23 19:48:21 +0000 |
commit | 6a425ff3a6aac8dcd663b5d7647e9b372ddee0b6 (patch) | |
tree | 4a0e0d43b8fa8b62cc9ab39cac6e6762c7d08ee4 /src/libutil | |
parent | 24f07eac1dc9a73fdfcd60fca156ac7f5035b6c2 (diff) | |
download | rspamd-6a425ff3a6aac8dcd663b5d7647e9b372ddee0b6.tar.gz rspamd-6a425ff3a6aac8dcd663b5d7647e9b372ddee0b6.zip |
[Minor] Sync ffi defs
Diffstat (limited to 'src/libutil')
-rw-r--r-- | src/libutil/mem_pool.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/mem_pool.c b/src/libutil/mem_pool.c index df8c3cb07..d17c72bb8 100644 --- a/src/libutil/mem_pool.c +++ b/src/libutil/mem_pool.c @@ -332,7 +332,7 @@ rspamd_mempool_new_ (gsize size, const gchar *tag, gint flags, const gchar *loc) struct rspamd_mempool_entry_point *entry = rspamd_mempool_get_entry (loc); gsize total_size; - if (size == 0) { + if (size == 0 && entry) { size = entry->cur_suggestion; } |