crypto/asn1/a_time.c:120: error: NULL_DEREFERENCE
  pointer `ts` last assigned on line 118 could be null and is dereferenced at line 120, column 6.
Showing all 3 steps of the trace


crypto/asn1/a_time.c:107:1: start of procedure ASN1_TIME_set()
105.   
106.   
107. > ASN1_TIME *ASN1_TIME_set(ASN1_TIME *s, time_t t)
108.   	{
109.   	struct tm *ts;

crypto/asn1/a_time.c:118:2: 
116.   	ts=&data; /* should return &data, but doesn't on some systems, so we don't even look at the return value */
117.   #else
118. > 	ts=gmtime(&t);
119.   #endif
120.   	if((ts->tm_year >= 50) && (ts->tm_year < 150))

crypto/asn1/a_time.c:120:6: 
118.   	ts=gmtime(&t);
119.   #endif
120. > 	if((ts->tm_year >= 50) && (ts->tm_year < 150))
121.   					return ASN1_UTCTIME_set(s, t);
122.   	return ASN1_GENERALIZEDTIME_set(s,t);
