httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n..@apache.org
Subject svn commit: r892808 - /httpd/httpd/trunk/server/protocol.c
Date Mon, 21 Dec 2009 13:11:15 GMT
Author: niq
Date: Mon Dec 21 13:11:14 2009
New Revision: 892808

URL: http://svn.apache.org/viewvc?rev=892808&view=rev
Log:
Fix up r892678 as pointed out by rpluem.

Modified:
    httpd/httpd/trunk/server/protocol.c

Modified: httpd/httpd/trunk/server/protocol.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/protocol.c?rev=892808&r1=892807&r2=892808&view=diff
==============================================================================
--- httpd/httpd/trunk/server/protocol.c (original)
+++ httpd/httpd/trunk/server/protocol.c Mon Dec 21 13:11:14 2009
@@ -434,7 +434,7 @@
     *read = bytes_handled;
 
     /* PR#43039: We shouldn't accept NULL bytes within the line */
-    if (strlen(*s) < bytes_handled - 1) {
+    if (strlen(*s) < bytes_handled) {
         return APR_EINVAL;
     }
 



Mime
View raw message