required ctx is valid in mem_isovermem().
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
* PERFORMANCE OF THIS SOFTWARE.
|
* 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 */
|
/*! \file */
|
||||||
|
|
||||||
@@ -1780,6 +1780,8 @@ ISC_MEMFUNC_SCOPE isc_boolean_t
|
|||||||
isc__mem_isovermem(isc_mem_t *ctx0) {
|
isc__mem_isovermem(isc_mem_t *ctx0) {
|
||||||
isc__mem_t *ctx = (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
|
* We don't bother to lock the context because 100% accuracy isn't
|
||||||
* necessary (and even if we locked the context the returned value
|
* necessary (and even if we locked the context the returned value
|
||||||
|
|||||||
Reference in New Issue
Block a user