]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Add a note on t->r checking, as per RĂ¼diger's email.
authorDaniel Gruno <humbedooh@apache.org>
Fri, 28 Mar 2014 20:43:15 +0000 (20:43 +0000)
committerDaniel Gruno <humbedooh@apache.org>
Fri, 28 Mar 2014 20:43:15 +0000 (20:43 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1582881 13f79535-47bb-0310-9956-ffa450edef68

modules/lua/lua_apr.c

index 21651ead4ffc1fa4afe15a588c3db8496f541997..94761ba4b220611ab693329675b6147d11c3a86d 100644 (file)
@@ -41,6 +41,10 @@ static int lua_table_set(lua_State *L)
     const char     *key = luaL_checkstring(L, 2);
     const char     *val = luaL_checkstring(L, 3);
     /* Unless it's the 'notes' table, check for newline chars */
+    /* t->r will be NULL in case of the connection notes, but since 
+       we aren't going to check anything called 'notes', we can safely 
+       disregard checking whether t->r is defined.
+    */
     if (strcmp(t->n, "notes") && ap_strchr_c(val, '\n')) {
         char *badchar;
         char *replacement = apr_pstrdup(t->r->pool, val);