Skip to content

Commit fcced75

Browse files
committed
Fix select when verifying token with expiration
Off-by-one error. Fixes #114 Fixes OSPOOL-73
1 parent 5e0ca52 commit fcced75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scitokens_internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ class Validator {
404404
auto result = verify_async(scitoken);
405405
while (!result->m_done) {
406406
auto timeout_val = result->get_timeout_val(expiry_time);
407-
select(result->get_max_fd(), result->get_read_fd_set(),
407+
select(result->get_max_fd()+1, result->get_read_fd_set(),
408408
result->get_write_fd_set(), result->get_exc_fd_set(),
409409
&timeout_val);
410410
if (time(NULL) >= expiry_time) {

0 commit comments

Comments
 (0)