(get_dbinfo): if there are database specifications in the config file,
don't automatically try to use the default values (from Gombas Gabor) git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10819 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 1997-2001 Kungliga Tekniska H<>gskolan
|
* Copyright (c) 1997-2002 Kungliga Tekniska H<>gskolan
|
||||||
* (Royal Institute of Technology, Stockholm, Sweden).
|
* (Royal Institute of Technology, Stockholm, Sweden).
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
@@ -181,7 +181,8 @@ get_dbinfo(krb5_config_section *cf)
|
|||||||
}
|
}
|
||||||
*dt = di;
|
*dt = di;
|
||||||
dt = &di->next;
|
dt = &di->next;
|
||||||
} else {
|
} else if(databases == NULL) {
|
||||||
|
/* if there are none specified, use some default */
|
||||||
di = calloc(1, sizeof(*di));
|
di = calloc(1, sizeof(*di));
|
||||||
di->dbname = strdup(default_dbname);
|
di->dbname = strdup(default_dbname);
|
||||||
di->mkey_file = strdup(default_mkey);
|
di->mkey_file = strdup(default_mkey);
|
||||||
|
Reference in New Issue
Block a user