(hx509_parse_name): fix length argument to stringtooid, 1 too short.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17278 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2006-04-26 17:12:36 +00:00
parent 70552d3ed2
commit fe9bb14be8

View File

@@ -357,7 +357,7 @@ hx509_parse_name(const char *str, hx509_name *name)
if ((q - p) > len)
_hx509_abort(" = after , in %s", p);
oid = stringtooid(p, q - p - 1);
oid = stringtooid(p, q - p);
if (oid == NULL) {
_hx509_abort("unknown type: %.*s", (int)(q - p) - 1, p);
exit(1);