From 7c66031f13570e327119aed0982f1f3a24a82754 Mon Sep 17 00:00:00 2001 From: Geoffrey King Date: Mon, 16 Nov 1998 12:59:22 +0000 Subject: [PATCH] * 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 --- src/appl/bsd/ChangeLog | 7 +++++++ src/appl/bsd/login.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) 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; -- 2.26.2