Closed ssdr closed 6 months ago
How about resetting next_update_p by next_update_p[0] = 0
when next_update != 0
before return next_update?
How about resetting next_update_p by
next_update_p[0] = 0
whennext_update != 0
before return next_update?
yes, it seems better.
For the ocsp response without nextUpdate value, it will get the previous nextUpdate value which is cached in the module-level lua ffi variable, this is not what we expected.
Maybe we should use function-level local variable instead?
I hereby granted the copyright of the changes in this pull request to the authors of this lua-resty-core project.