2
0
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:
Stephen Morris
2012-10-24 19:34:38 +01:00
parent 39c82ec533
commit 08daa03bea
4 changed files with 54 additions and 4 deletions

View File

@@ -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.