提交 083100e2 编写于 作者: R Richard Levitte

Check error code from a2d_ASN1_OBJECT().

上级 241d2ba1
......@@ -654,6 +654,8 @@ int OBJ_create(const char *oid, const char *sn, const char *ln)
return(0);
}
i=a2d_ASN1_OBJECT(buf,i,oid,-1);
if (i == 0)
goto err;
op=(ASN1_OBJECT *)ASN1_OBJECT_create(OBJ_new_nid(1),buf,i,sn,ln);
if (op == NULL)
goto err;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册