diff options
| author | Dave Olson <olson@cumulusnetworks.com> | 2016-10-26 13:19:58 -0700 |
|---|---|---|
| committer | Dave Olson <olson@cumulusnetworks.com> | 2016-10-26 14:40:03 -0700 |
| commit | 6d7873c35aa6d738e9b9f4abb30e66b50e7652b5 (patch) | |
| tree | 1657c54bf1fadfd04d239ab299d697ced3ff5531 | |
| parent | 2f51096c0765e52afd109ea81f6fa0fe1b35cb61 (diff) | |
| download | libnss-tacplus-6d7873c35aa6d738e9b9f4abb30e66b50e7652b5.tar.gz libnss-tacplus-6d7873c35aa6d738e9b9f4abb30e66b50e7652b5.zip | |
Fixed a LOG_DEBUG message to be protected by if (debug)
| -rw-r--r-- | nss_tacplus.c | 3 |
1 files changed, 2 insertions, 1 deletions
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)," |
