arrfab / rpms / httpd

Forked from rpms/httpd 5 years ago
Clone
0943f8
--- a/modules/aaa/mod_authn_dbd.c	2015/03/03 11:11:33	1663646
0943f8
+++ b/modules/aaa/mod_authn_dbd.c	2015/03/03 11:12:18	1663647
0943f8
@@ -174,7 +174,8 @@
0943f8
                 i++;
0943f8
             }
0943f8
 #endif
0943f8
-            dbd_password = apr_dbd_get_entry(dbd->driver, row, 0);
0943f8
+            dbd_password = apr_pstrdup(r->pool,
0943f8
+                                       apr_dbd_get_entry(dbd->driver, row, 0));
0943f8
         }
0943f8
         /* we can't break out here or row won't get cleaned up */
0943f8
     }
0943f8
@@ -269,7 +270,8 @@
0943f8
                 i++;
0943f8
             }
0943f8
 #endif
0943f8
-            dbd_hash = apr_dbd_get_entry(dbd->driver, row, 0);
0943f8
+            dbd_hash = apr_pstrdup(r->pool,
0943f8
+                                   apr_dbd_get_entry(dbd->driver, row, 0));
0943f8
         }
0943f8
         /* we can't break out here or row won't get cleaned up */
0943f8
     }