Only accept exact match for modifier or tag name
This commit is contained in:
parent
c99935e32c
commit
7fb8d254fe
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue