]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
required ctx is valid in mem_isovermem().
authorTatuya JINMEI 神明達哉 <jinmei@isc.org>
Wed, 11 Aug 2010 23:11:45 +0000 (23:11 +0000)
committerTatuya JINMEI 神明達哉 <jinmei@isc.org>
Wed, 11 Aug 2010 23:11:45 +0000 (23:11 +0000)
lib/isc/mem.c

index 8fd0b1edbba2aca6f53a75db9030451140b7607a..2a1346041eb8a20abff9ca4942b5dcd873c6cf52 100644 (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