Fixed CID 529748.

This commit is contained in:
Martin Kinčl
2021-03-03 20:12:59 +01:00
parent d941cb4456
commit c27c78f9e4

View File

@ -41907,8 +41907,10 @@ err:
ne->object = wolfSSL_OBJ_nid2obj_ex(nid, ne->object); ne->object = wolfSSL_OBJ_nid2obj_ex(nid, ne->object);
ne->value = wolfSSL_ASN1_STRING_type_new(type); ne->value = wolfSSL_ASN1_STRING_type_new(type);
if (ne->value != NULL) { if (ne->value != NULL) {
wolfSSL_ASN1_STRING_set(ne->value, (const void*)data, dataSz); if (wolfSSL_ASN1_STRING_set(ne->value, (const void*)data, dataSz)
ne->set = 1; == WOLFSSL_SUCCESS) {
ne->set = 1;
}
} }
return ne; return ne;