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


crypto/asn1/a_time.c:113:1: start of procedure ASN1_TIME_set()
111.   
112.   
113. > ASN1_TIME *ASN1_TIME_set(ASN1_TIME *s, time_t t)
114.   	{
115.   	struct tm *ts;

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

crypto/asn1/a_time.c:124:6: 
122.   	ts=gmtime(&t);
123.   #endif
124. > 	if((ts->tm_year >= 50) && (ts->tm_year < 150))
125.   					return ASN1_UTCTIME_set(s, t);
126.   	return ASN1_GENERALIZEDTIME_set(s,t);
