From 7dbd6102d23c0df0ba2b6638d8068149da2cb711 Mon Sep 17 00:00:00 2001 From: John Safranek Date: Mon, 26 Oct 2020 16:10:44 -0700 Subject: [PATCH] Compatibility Layer When wolfSSL_X509_NAME_ENTRY_create_by_txt() needs to make a new ASN.1 object ID, actually store it in the name entry. --- src/ssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ssl.c b/src/ssl.c index f87108f70..3c545874b 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -38732,7 +38732,7 @@ err: } } ne->nid = nid; - wolfSSL_OBJ_nid2obj_ex(nid, ne->object); + ne->object = wolfSSL_OBJ_nid2obj_ex(nid, ne->object); ne->value = wolfSSL_ASN1_STRING_type_new(type); if (ne->value != NULL) { wolfSSL_ASN1_STRING_set(ne->value, (const void*)data, dataSz);