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:57 -0700 |
| commit | ea1585eeb7ebc8bc4d8b08318c69ba1c84bbfc04 (patch) | |
| tree | 5d3d5e85b9d28c613e38b40314e7580493ed5f54 | |
| parent | cbd518de9b0c6e0359cd73d2bafc4d5048c87e6f (diff) | |
| download | libnss-tacplus-ea1585eeb7ebc8bc4d8b08318c69ba1c84bbfc04.tar.gz libnss-tacplus-ea1585eeb7ebc8bc4d8b08318c69ba1c84bbfc04.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 9359942..10d4cfa 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)," |
