提交 2c60925d 编写于 作者: R Rich Salz

RT2914: NULL check missing in X509_name_canon

Check for NULL return from X509_NAME_ENTRY_new()
Reviewed-by: NDr. Stephen Henson <steve@openssl.org>
上级 95275599
......@@ -350,6 +350,8 @@ static int x509_name_canon(X509_NAME *a)
set = entry->set;
}
tmpentry = X509_NAME_ENTRY_new();
if (!tmpentry)
goto err;
tmpentry->object = OBJ_dup(entry->object);
if (!asn1_string_canon(tmpentry->value, entry->value))
goto err;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册