BUG/MINOR: http/sample: gmtime/localtime can fail
authorThierry FOURNIER <tfournier@arpalert.org>
Tue, 7 Jul 2015 22:15:20 +0000 (00:15 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 20 Jul 2015 10:21:35 +0000 (12:21 +0200)
commitfac9ccfb705702f211f99e67d5f5d5129002086a
treea862268e94ca87c07dfee26d5bf312eba7e7ffd4
parent8a39a1fcc37cc6ac88adbe29048ce0c6397b5ff5
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.
src/proto_http.c
src/sample.c