(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:
Love Hörnquist Åstrand
2006-11-27 10:32:21 +00:00
parent 8fea309b05
commit 998db7a76f

View File

@@ -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)