required ctx is valid in mem_isovermem().

This commit is contained in:
Tatuya JINMEI 神明達哉
2010-08-11 23:11:45 +00:00
parent 27fe1966c9
commit 253ae50e09

View File

@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: mem.c,v 1.157 2010/08/11 22:54:58 jinmei Exp $ */
/* $Id: mem.c,v 1.158 2010/08/11 23:11:45 jinmei Exp $ */
/*! \file */
@@ -1780,6 +1780,8 @@ ISC_MEMFUNC_SCOPE isc_boolean_t
isc__mem_isovermem(isc_mem_t *ctx0) {
isc__mem_t *ctx = (isc__mem_t *)ctx0;
REQUIRE(VALID_CONTEXT(ctx));
/*
* We don't bother to lock the context because 100% accuracy isn't
* necessary (and even if we locked the context the returned value