summaryrefslogtreecommitdiff
path: root/lib/int.h
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2012-11-24 17:57:51 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2012-11-24 17:57:51 +0100
commit3c439d2a5c5fb669645076bcd380a352fb23d725 (patch)
tree335054456029bbf58047c21d8f91eacf9891ab89 /lib/int.h
parent87eaca2a83999caa575df98a7d7e483251c361ee (diff)
downloadlibtasn1-3c439d2a5c5fb669645076bcd380a352fb23d725.tar.gz
libtasn1-3c439d2a5c5fb669645076bcd380a352fb23d725.tar.bz2
libtasn1-3c439d2a5c5fb669645076bcd380a352fb23d725.zip
corrected compatibility mode with old structures.
Diffstat (limited to 'lib/int.h')
-rw-r--r--lib/int.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/int.h b/lib/int.h
index ce20ab2..3163d50 100644
--- a/lib/int.h
+++ b/lib/int.h
@@ -167,7 +167,7 @@ inline static unsigned int convert_old_type(unsigned int ntype)
unsigned int type = ntype & 0xff;
if (type == ASN1_ETYPE_TIME)
{
- if (type & CONST_UTC)
+ if (ntype & CONST_UTC)
type = ASN1_ETYPE_UTC_TIME;
else
type = ASN1_ETYPE_GENERALIZED_TIME;