httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r774493 - /httpd/httpd/trunk/modules/mem/mod_plainmem.c
Date Wed, 13 May 2009 18:59:48 GMT
Author: jim
Date: Wed May 13 18:59:48 2009
New Revision: 774493

URL: http://svn.apache.org/viewvc?rev=774493&view=rev
Log:
off by 1 error

Modified:
    httpd/httpd/trunk/modules/mem/mod_plainmem.c

Modified: httpd/httpd/trunk/modules/mem/mod_plainmem.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/mem/mod_plainmem.c?rev=774493&r1=774492&r2=774493&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/mem/mod_plainmem.c (original)
+++ httpd/httpd/trunk/modules/mem/mod_plainmem.c Wed May 13 18:59:48 2009
@@ -139,7 +139,7 @@
 
     if (!score)
         return APR_ENOSHMAVAIL;
-    if (id < 0 || id > score->num)
+    if (id < 0 || id >= score->num)
         return APR_ENOSHMAVAIL;
 
     ptr = score->base + score->size * id;



Mime
View raw message