[Pvfs2-cvs] commit by nlmills in pvfs2/src/common/security: pint-security.c

CVS commit program cvs at parl.clemson.edu
Wed Mar 9 22:19:42 EST 2011


Update of /projects/cvsroot/pvfs2/src/common/security
In directory parlweb1:/tmp/cvs-serv23504

Modified Files:
      Tag: cu-security-branch
	pint-security.c 
Log Message:
made capability/credential timeout values more strict


Index: pint-security.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/common/security/Attic/pint-security.c,v
diff -p -u -r1.1.2.65 -r1.1.2.66
--- pint-security.c	19 Jan 2011 05:36:57 -0000	1.1.2.65
+++ pint-security.c	10 Mar 2011 03:19:41 -0000	1.1.2.66
@@ -363,7 +363,7 @@ int PINT_verify_capability(const PVFS_ca
     }
 
     /* if capability has timed out */
-    if (PINT_util_get_current_time() > cap->timeout)
+    if (PINT_util_get_current_time() >= cap->timeout)
     {
         return 0;
     }
@@ -605,7 +605,7 @@ int PINT_verify_credential(const PVFS_cr
         return 0;
     }
 
-    if (PINT_util_get_current_time() > cred->timeout)
+    if (PINT_util_get_current_time() >= cred->timeout)
     {
         return 0;
     }



More information about the Pvfs2-cvs mailing list