From 7fb8d254fec0962ad702399b0cc4ad6ef1b3933b Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Wed, 13 Nov 2002 00:57:41 +0000 Subject: [PATCH] Only accept exact match for modifier or tag name --- crypto/asn1/asn1_gen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.25.1