Fix memory leak in req_cb() of x_req.c - handle distinguishing_id also with NO_SM2
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>
Mon, 28 Sep 2020 08:31:46 +0000 (10:31 +0200)
committerDr. David von Oheimb <David.von.Oheimb@siemens.com>
Thu, 1 Oct 2020 12:13:18 +0000 (14:13 +0200)
commit7d80985e178d77226392f9c35c36f3f885b884d7
treeeb38d42d08dc97d4746d75b8546b6c4747496877
parent746f3674896845460946ace7e963e52b547fbf35
Fix memory leak in req_cb() of x_req.c - handle distinguishing_id also with NO_SM2

Was detected via test_req_distinguishing_id() with config having no-ec but not no-sm2

Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/13021)
crypto/x509/x_req.c