git://scientific.zcu.cz
/
jra1mw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d1bba8
)
Check also for negative values when verifying lifetime of creds
author
Daniel Kouřil
<kouril@ics.muni.cz>
Thu, 21 Oct 2004 10:20:12 +0000
(10:20 +0000)
committer
Daniel Kouřil
<kouril@ics.muni.cz>
Thu, 21 Oct 2004 10:20:12 +0000
(10:20 +0000)
org.glite.lb.common/src/lb_gss.c
patch
|
blob
|
blame
|
history
diff --git
a/org.glite.lb.common/src/lb_gss.c
b/org.glite.lb.common/src/lb_gss.c
index
a5642cb
..
a9de75f
100644
(file)
--- a/
org.glite.lb.common/src/lb_gss.c
+++ b/
org.glite.lb.common/src/lb_gss.c
@@
-521,7
+521,9
@@
edg_wll_gss_acquire_cred_gsi(char *cert_file, char *key_file, gss_cred_id_t *cre
goto end;
}
- if (lifetime == 0) {
+ /* Must cast to time_t since OM_uint32 is unsinged and hence we couldn't
+ * detect negative values. */
+ if ((time_t) lifetime <= 0) {
major_status = GSS_S_CREDENTIALS_EXPIRED;
minor_status = 0; /* XXX */
ret = EDG_WLL_GSS_ERROR_GSS;