mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-31 22:15:23 +00:00
[2342] Add check that database name cannot be NULL
This commit is contained in:
@@ -471,8 +471,8 @@ MySqlLeaseMgr::openDatabase() {
|
||||
sname = getParameter("name");
|
||||
name = sname.c_str();
|
||||
} catch (...) {
|
||||
// No database name. Fine, we'll use NULL
|
||||
;
|
||||
// No database name. Throw a "NoName" exception
|
||||
isc_throw(NoDatabaseName, "must specified a name for the database");
|
||||
}
|
||||
|
||||
// Open the database. Use defaults for non-specified options.
|
||||
|
Reference in New Issue
Block a user