summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjeroennijhof <jeroen@jeroennijhof.nl>2014-12-15 17:01:14 +0100
committerjeroennijhof <jeroen@jeroennijhof.nl>2014-12-15 17:01:14 +0100
commitacd053d0c44c22da77112e0fdb8abe07512b13d8 (patch)
treed9112797637b2405d25c58b97f4cd1f43b5447a7
parente52c3fdf821802845b32d7359b1bfbdd2274cd3f (diff)
parentad6bb002b1684ed4a7d4ecf16f0faa52faf69809 (diff)
downloadpam_tacplus-acd053d0c44c22da77112e0fdb8abe07512b13d8.tar.gz
pam_tacplus-acd053d0c44c22da77112e0fdb8abe07512b13d8.zip
Merge pull request #26 from benschumacher/master
Fix TACACS+ timeouts in pam_tacplus
-rw-r--r--support.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/support.c b/support.c
index 292a3a9..1558a74 100644
--- a/support.c
+++ b/support.c
@@ -259,8 +259,11 @@ int _pam_parse (int argc, const char **argv) {
/* FIXME atoi() doesn't handle invalid numeric strings well */
tac_timeout = atoi(*argv + 8);
- if (tac_timeout < 0)
+ if (tac_timeout < 0) {
tac_timeout = 0;
+ } else {
+ tac_readtimeout_enable = 1;
+ }
} else {
_pam_log (LOG_WARNING, "unrecognized option: %s", *argv);
}