(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:
@@ -357,7 +357,7 @@ hx509_parse_name(const char *str, hx509_name *name)
|
|||||||
if ((q - p) > len)
|
if ((q - p) > len)
|
||||||
_hx509_abort(" = after , in %s", p);
|
_hx509_abort(" = after , in %s", p);
|
||||||
|
|
||||||
oid = stringtooid(p, q - p - 1);
|
oid = stringtooid(p, q - p);
|
||||||
if (oid == NULL) {
|
if (oid == NULL) {
|
||||||
_hx509_abort("unknown type: %.*s", (int)(q - p) - 1, p);
|
_hx509_abort("unknown type: %.*s", (int)(q - p) - 1, p);
|
||||||
exit(1);
|
exit(1);
|
||||||
|
Reference in New Issue
Block a user