[Pvfs2-cvs] commit by nlmills in pvfs2/src/common/misc: pvfs2-util.c
CVS commit program
cvs at parl.clemson.edu
Wed Jun 16 16:45:32 EDT 2010
Update of /projects/cvsroot/pvfs2/src/common/misc
In directory parlweb1:/tmp/cvs-serv2142/src/common/misc
Modified Files:
Tag: cu-security-branch
pvfs2-util.c
Log Message:
lots of little fixes that have been in the works for a while
Index: pvfs2-util.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/common/misc/pvfs2-util.c,v
diff -p -u -r1.100.2.18 -r1.100.2.19
--- pvfs2-util.c 4 Jun 2010 19:26:25 -0000 1.100.2.18
+++ pvfs2-util.c 16 Jun 2010 20:45:32 -0000 1.100.2.19
@@ -254,7 +254,6 @@ int PVFS_util_gen_credential(const char
char *ptr = buf;
PVFS_credential tmp;
- /* nlmills: TODO: secure against buffer overflows in decode */
decode_PVFS_credential(&ptr, &tmp);
ret = PINT_copy_credential(&tmp, cred);
}
@@ -276,8 +275,8 @@ int PVFS_util_refresh_credential(PVFS_cr
{
int ret;
- /* =if the credential is valid for at least a minute */
- if (PINT_util_get_current_time() <= cred->timeout - 60)
+ /* =if the credential is valid for at least an hour */
+ if (PINT_util_get_current_time() <= cred->timeout - 3600)
{
ret = 0;
}
More information about the Pvfs2-cvs
mailing list