Fall back on default if the dbm type is unset.
@@ -86,6 +86,10 @@ APR_DECLARE(apr_status_t) apr_dbm_get_driver(const apr_dbm_driver_t **vtable,
*result = NULL; /* until further notice */
}
+ if (!type) {
+ type = DBM_NAME;
+ }
+
*vtable = NULL;
if (!strcasecmp(type, "default")) *vtable = &DBM_VTABLE;
#if APU_HAVE_DB
@@ -133,6 +137,10 @@ APR_DECLARE(apr_status_t) apr_dbm_get_driver(const apr_dbm_driver_t **vtable,
*result = NULL; /* until further notice */
}
+ if (!type) {
+ type = DBM_NAME;
+ }
+
if (!strcasecmp(type, "default")) type = DBM_NAME;
else if (!strcasecmp(type, "db")) type = "db";
else if (*type && !strcasecmp(type + 1, "dbm")) {
