Commit 598c423e authored by Dr. Stephen Henson's avatar Dr. Stephen Henson
Browse files

don't use psec or pdays if NULL

parent 360ef676
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -289,7 +289,9 @@ int OPENSSL_gmtime_diff(struct tm *from, struct tm *to, int *pday, int *psec)
		diff_sec -= SECS_PER_DAY;
		}

	if (pday)
		*pday = (int)diff_day;
	if (psec)
		*psec = diff_sec;

	return 1;