提交 a4e31088 编写于 作者: G Geoff Thorpe

sk_***_new_null() seems to be there to avoid exactly this sort of thing

which is a cast between NULL and a function pointer.
上级 e20d7d71
...@@ -217,7 +217,7 @@ X509_NAME *X509_NAME_new(void) ...@@ -217,7 +217,7 @@ X509_NAME *X509_NAME_new(void)
ASN1_CTX c; ASN1_CTX c;
M_ASN1_New_Malloc(ret,X509_NAME); M_ASN1_New_Malloc(ret,X509_NAME);
if ((ret->entries=sk_X509_NAME_ENTRY_new(NULL)) == NULL) if ((ret->entries=sk_X509_NAME_ENTRY_new_null()) == NULL)
{ c.line=__LINE__; goto err2; } { c.line=__LINE__; goto err2; }
M_ASN1_New(ret->bytes,BUF_MEM_new); M_ASN1_New(ret->bytes,BUF_MEM_new);
ret->modified=1; ret->modified=1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册