hx509: fix hx509_request_get_eku()

This commit is contained in:
Nicolas Williams
2019-11-04 14:10:30 -06:00
parent efb27f15ac
commit 9ca5d710f9

View File

@@ -904,7 +904,7 @@ hx509_request_get_eku(hx509_context context,
*out = NULL; *out = NULL;
if (*cursor < 0) if (*cursor < 0)
return 0; return 0;
i = (size_t)cursor; i = (size_t)*cursor;
if (i >= req->eku.len) if (i >= req->eku.len)
return 0; /* XXX */ return 0; /* XXX */
if (i + 1 < req->eku.len) if (i + 1 < req->eku.len)