commit | 955587271031d66e9b7a768e3bb18dae00b60cc6 | [log] [tgz] |
---|---|---|
author | Thierry FOURNIER <tfournier@arpalert.org> | Wed Jul 08 00:15:20 2015 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Mon Aug 24 17:10:40 2015 +0200 |
tree | 626205bd3e0ca2b4a4eec579c38343bbb04d7cab | |
parent | e4766ba031e1fea8f2ca139316dc4e8209e960c2 [diff] |
BUG/MINOR: http/sample: gmtime/localtime can fail The man said that gmtime() and localtime() can return a NULL value. This is not tested. It appears that all the values of a 32 bit integer are valid, but it is better to check the return of these functions. However, if the integer move from 32 bits to 64 bits, some 64 values can be unsupported. (cherry picked from commit fac9ccfb705702f211f99e67d5f5d5129002086a) [wt: we only have sample_conv_date() in 1.5]