mirror of
https://github.com/openssl/openssl.git
synced 2025-02-17 14:32:04 +08:00
don't use psec or pdays if NULL
This commit is contained in:
parent
360ef6769e
commit
598c423e65
@ -289,8 +289,10 @@ int OPENSSL_gmtime_diff(struct tm *from, struct tm *to, int *pday, int *psec)
|
||||
diff_sec -= SECS_PER_DAY;
|
||||
}
|
||||
|
||||
*pday = (int)diff_day;
|
||||
*psec = diff_sec;
|
||||
if (pday)
|
||||
*pday = (int)diff_day;
|
||||
if (psec)
|
||||
*psec = diff_sec;
|
||||
|
||||
return 1;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user