From: Dr. Stephen Henson Date: Wed, 13 Nov 2002 00:57:41 +0000 (+0000) Subject: Only accept exact match for modifier or tag name X-Git-Tag: OpenSSL_0_9_7-beta4~18^2~55 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7fb8d254fec0962ad702399b0cc4ad6ef1b3933b;p=oweals%2Fopenssl.git Only accept exact match for modifier or tag name --- 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; }