]> granicus.if.org Git - apache/commitdiff
apr_dbd_get_entry from r466865 doesn't alloc new memory for each return val.
authorNick Kew <niq@apache.org>
Sat, 20 Oct 2007 17:54:09 +0000 (17:54 +0000)
committerNick Kew <niq@apache.org>
Sat, 20 Oct 2007 17:54:09 +0000 (17:54 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@586765 13f79535-47bb-0310-9956-ffa450edef68

modules/aaa/mod_authn_dbd.c

index c81e3111852a5dbb5f4f1cf4685a82631d22036b..2902828376751d0e2866b8074864b3bf3247b828 100644 (file)
@@ -148,8 +148,8 @@ static authn_status authn_dbd_password(request_rec *r, const char *user,
                     }
                     j++;
                 }
-                apr_table_setn(r->subprocess_env, str,
-                               apr_dbd_get_entry(dbd->driver, row, i));
+                apr_table_set(r->subprocess_env, str,
+                              apr_dbd_get_entry(dbd->driver, row, i));
                 i++;
             }
 #endif
@@ -232,8 +232,8 @@ static authn_status authn_dbd_realm(request_rec *r, const char *user,
                     }
                     j++;
                 }
-                apr_table_setn(r->subprocess_env, str,
-                               apr_dbd_get_entry(dbd->driver, row, i));
+                apr_table_set(r->subprocess_env, str,
+                              apr_dbd_get_entry(dbd->driver, row, i));
                 i++;
             }
 #endif