altarch-user / rpms / httpd

Forked from rpms/httpd 2 years ago
Clone

Blame SOURCES/httpd-2.4.6-r1663647.patch

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