[Snort-devel] report a small bug

张峥 zhangz at ...3097...
Thu Jul 8 23:34:09 EDT 2010


 At Snort-2.8.5, mempool.c has a small bug.


=========patch===============================================

diff --git a/src/mempool.c b/src/mempool.c
index 7c6b778..1aae623 100644
--- a/src/mempool.c
+++ b/src/mempool.c
@@ -89,6 +89,7 @@ int mempool_init(MemPool *mempool, PoolCount
num_objects, size_t obj_size)
return 1;

mempool->obj_size = obj_size;
+ mempool->free = 0;

/* this is the basis pool that represents all the *data pointers
in the list */
=========end==================================================




More information about the Snort-devel mailing list