mirror of
https://github.com/haproxy/haproxy.git
synced 2026-03-28 13:24:28 -04:00
BUG/MINOR: acme: NULL check on my_strndup()
Add a NULL check on my_strndup(). Must be backported to 3.2 and later.
This commit is contained in:
parent
38a7d8599d
commit
52d8ee85e7
1 changed files with 2 additions and 1 deletions
|
|
@ -2558,7 +2558,8 @@ X509_REQ *acme_x509_req(EVP_PKEY *pkey, char **san)
|
|||
for (i = 0; san[i]; i++) {
|
||||
chunk_appendf(san_trash, "%sDNS:%s", i ? "," : "", san[i]);
|
||||
}
|
||||
str_san = my_strndup(san_trash->area, san_trash->data);
|
||||
if ((str_san = my_strndup(san_trash->area, san_trash->data)) == NULL)
|
||||
goto error;
|
||||
|
||||
if ((ext_san = X509V3_EXT_conf_nid(NULL, NULL, NID_subject_alt_name, str_san)) == NULL)
|
||||
goto error;
|
||||
|
|
|
|||
Loading…
Reference in a new issue