From ef6111eb0e0fcb6ff339d35c3d8fa6913abbe6fe Mon Sep 17 00:00:00 2001 From: Andrea Manzi <amanzi@cern.ch> Date: Thu, 13 Dec 2018 16:41:16 +0000 Subject: [PATCH] FTS-1311: add a check for voms_lifetime , cause =0 means no voms_extensions (cherry picked from commit b52324096b2676e419e26180c168026aa765aa1a) --- src/cred/DelegCred.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cred/DelegCred.cpp b/src/cred/DelegCred.cpp index e0f593205..ca7bac6b7 100644 --- a/src/cred/DelegCred.cpp +++ b/src/cred/DelegCred.cpp @@ -189,7 +189,7 @@ bool DelegCred::isValidProxy(const std::string& filename, std::string& message) return false; } - else if(minValidityTime() >= (unsigned long)voms_lifetime) + else if( (voms_lifetime > 0) && (minValidityTime() >= (unsigned long)voms_lifetime)) { message = " VO extensions for certificate "; message += filename; -- GitLab