Skip to content

Commit 3add8ef

Browse files
committed
Fix for #205
1 parent ff887a7 commit 3add8ef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Source/TaurusTLS_Utils.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ function ASN1_Time_Decode(const a: PASN1_TIME; out year, month, day, hour, min,
517517
ASN1_STRING_length(PASN1_STRING(a)));
518518
{$ELSE}
519519
{$IFDEF STRING_IS_ANSI}
520-
SetString(time_str, PAnsiChar(ASN1_STRING_get0_data(a), ASN1_STRING_length(a));
520+
SetString(time_str, PIdAnsiChar(ASN1_STRING_get0_data(PASN1_STRING(a))), ASN1_STRING_length(PASN1_STRING(a)));
521521
{$ELSE}
522522
SetString(LTemp, PIdAnsiChar(ASN1_STRING_get0_data(PASN1_STRING(a))), ASN1_STRING_length(PASN1_STRING(a))); //PALOFF - Possible bad pointer usage [data : PByte cast to PAnsiChar]
523523
{ Note: UTCtime is a type defined by OpenSSL and hence is ansistring and not UCS-2 }

0 commit comments

Comments
 (0)