httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r1725762 - /httpd/httpd/trunk/server/util_expr_eval.c
Date Wed, 20 Jan 2016 17:37:19 GMT
Author: jim
Date: Wed Jan 20 17:37:19 2016
New Revision: 1725762

URL: http://svn.apache.org/viewvc?rev=1725762&view=rev
Log:
Just in case...

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

Modified: httpd/httpd/trunk/server/util_expr_eval.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/util_expr_eval.c?rev=1725762&r1=1725761&r2=1725762&view=diff
==============================================================================
--- httpd/httpd/trunk/server/util_expr_eval.c (original)
+++ httpd/httpd/trunk/server/util_expr_eval.c Wed Jan 20 17:37:19 2016
@@ -1067,7 +1067,8 @@ static const char *kb_func(ap_expr_eval_
 
     buf = apr_palloc(ctx->r->pool, len);
     apr_brigade_flatten(ctx->r->kept_body, buf, &len);
-    buf[len-1] = '\0'; /* ensure */
+    if (len)
+        buf[len-1] = '\0'; /* ensure */
     return (const char*)buf;
 }
 



Mime
View raw message