diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2002-11-13 03:57:41 +0300 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2002-11-13 03:57:41 +0300 |
commit | 7fb8d254fec0962ad702399b0cc4ad6ef1b3933b (patch) | |
tree | 26d6c599eaa3d6bc8f7d68022c04047c1a23f49e /crypto | |
parent | c99935e32cba193c10e1933ab1b34e3931a52b9a (diff) |
Only accept exact match for modifier or tag name
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/asn1/asn1_gen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/asn1/asn1_gen.c b/crypto/asn1/asn1_gen.c index d6f7c9b31e..62c2c154d1 100644 --- a/crypto/asn1/asn1_gen.c +++ b/crypto/asn1/asn1_gen.c @@ -600,7 +600,7 @@ static int asn1_str2tag(const char *tagstr, int len) tntmp = tnst; for (i = 0; i < sizeof(tnst) / sizeof(struct tag_name_st); i++, tntmp++) { - if (!strncmp(tntmp->strnam, tagstr, tntmp->len)) + if ((len == tntmp->len) && !strncmp(tntmp->strnam, tagstr, len)) return tntmp->tag; } |