(der_print_heim_oid): oid with zero length is invalid, fail to print.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19138 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -110,6 +110,9 @@ der_print_heim_oid (const heim_oid *oid, char delim, char **str)
|
||||
struct rk_strpool *p = NULL;
|
||||
int i;
|
||||
|
||||
if (oid->length == 0)
|
||||
return EINVAL;
|
||||
|
||||
for (i = 0; i < oid->length ; i++) {
|
||||
p = rk_strpoolprintf(p, "%d", oid->components[i]);
|
||||
if (p && i < oid->length - 1)
|
||||
|
Reference in New Issue
Block a user