From: Geoffrey King Date: Mon, 16 Nov 1998 12:59:22 +0000 (+0000) Subject: * login.c (login_get_kconf): Also test whether *kconf_val is null X-Git-Tag: krb5-1.1-beta1~478 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7c66031f13570e327119aed0982f1f3a24a82754;p=krb5.git * login.c (login_get_kconf): Also test whether *kconf_val is null rather than just kconf_val before passing *kconf_val to conf_affirmative (where strcasecmp will choke on it if it is in fact null). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11039 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/appl/bsd/ChangeLog b/src/appl/bsd/ChangeLog index 72e03fe85..1159663c8 100644 --- a/src/appl/bsd/ChangeLog +++ b/src/appl/bsd/ChangeLog @@ -1,3 +1,10 @@ +1998-11-16 Geoffrey King + + * login.c (login_get_kconf): Also test whether *kconf_val is null + rather than just kconf_val before passing *kconf_val to + conf_affirmative (where strcasecmp will choke on it + if it is in fact null). + 1998-11-13 Theodore Ts'o * Makefile.in: Set the myfulldir and mydir variables (which are diff --git a/src/appl/bsd/login.c b/src/appl/bsd/login.c index c8017cc77..6c651b006 100644 --- a/src/appl/bsd/login.c +++ b/src/appl/bsd/login.c @@ -407,7 +407,7 @@ void login_get_kconf(k) kconf_names, &kconf_val); if (retval) { /* ignore most (all?) errors */ - } else if (kconf_val) { + } else if (kconf_val && *kconf_val) { switch(conf_affirmative(*kconf_val)) { case 1: *login_conf_set[i].flag = 1;