From 6d7873c35aa6d738e9b9f4abb30e66b50e7652b5 Mon Sep 17 00:00:00 2001 From: Dave Olson Date: Wed, 26 Oct 2016 13:19:58 -0700 Subject: Fixed a LOG_DEBUG message to be protected by if (debug) --- nss_tacplus.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nss_tacplus.c b/nss_tacplus.c index 4d48c97..b82613e 100644 --- a/nss_tacplus.c +++ b/nss_tacplus.c @@ -506,7 +506,8 @@ lookup_tacacs_user(struct pwbuf *pb) user = strtok(list, ","); list = NULL; while (user && !strcmp(user, pb->name)) { - syslog(LOG_DEBUG, "%s: check user=(%s)", nssname, user); + if(debug) + syslog(LOG_DEBUG, "%s: check user=(%s)", nssname, user); if ((islocal = lookup_local(user, 0))) { if (debug) syslog(LOG_DEBUG, "%s: exclude_users match (%s)," -- cgit v1.2.3