mirror of
https://github.com/clearml/dropbear
synced 2025-04-20 22:24:30 +00:00
Properly fix the bug found years ago by Klocwork, refound again.
--HG-- extra : convert_revision : 65b95facde07c748c56e0bfa25c801397dc16a99
This commit is contained in:
parent
22c16a8b71
commit
b272b967e2
@ -205,7 +205,7 @@ void svr_dropbear_log(int priority, const char* format, va_list param) {
|
|||||||
local_tm = localtime(×ec);
|
local_tm = localtime(×ec);
|
||||||
if (local_tm == NULL
|
if (local_tm == NULL
|
||||||
|| strftime(datestr, sizeof(datestr), "%b %d %H:%M:%S",
|
|| strftime(datestr, sizeof(datestr), "%b %d %H:%M:%S",
|
||||||
localtime(×ec)) == 0)
|
local_tm) == 0)
|
||||||
{
|
{
|
||||||
/* upon failure, just print the epoch-seconds time. */
|
/* upon failure, just print the epoch-seconds time. */
|
||||||
snprintf(datestr, sizeof(datestr), "%d", (int)timesec);
|
snprintf(datestr, sizeof(datestr), "%d", (int)timesec);
|
||||||
|
Loading…
Reference in New Issue
Block a user