Check for null cf.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3135 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
1997-08-24 12:33:43 +00:00
parent fc2c148eb4
commit 9b44bb4871

View File

@@ -44,9 +44,10 @@ static krb5_log_facility *logf;
void void
kdc_openlog(krb5_config_section *cf) kdc_openlog(krb5_config_section *cf)
{ {
char **s, **p; char **s = NULL, **p;
krb5_initlog(context, "kdc", &logf); krb5_initlog(context, "kdc", &logf);
s = krb5_config_get_strings(cf, "kdc", "logging", NULL); if(cf)
s = krb5_config_get_strings(cf, "kdc", "logging", NULL);
if(s == NULL) if(s == NULL)
s = krb5_config_get_strings(context->cf, "logging", "kdc", NULL); s = krb5_config_get_strings(context->cf, "logging", "kdc", NULL);