Update - OpenSSL 1.1.1-pre7-dev
This commit is contained in:
+4
-3
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2001-2016 The OpenSSL Project Authors. All Rights Reserved.
|
||||
* Copyright 2001-2018 The OpenSSL Project Authors. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||
* this file except in compliance with the License. You can obtain a copy
|
||||
@@ -374,9 +374,10 @@ char *UI_construct_prompt(UI *ui, const char *object_desc,
|
||||
len += sizeof(prompt2) - 1 + strlen(object_name);
|
||||
len += sizeof(prompt3) - 1;
|
||||
|
||||
prompt = OPENSSL_malloc(len + 1);
|
||||
if (prompt == NULL)
|
||||
if ((prompt = OPENSSL_malloc(len + 1)) == NULL) {
|
||||
UIerr(UI_F_UI_CONSTRUCT_PROMPT, ERR_R_MALLOC_FAILURE);
|
||||
return NULL;
|
||||
}
|
||||
OPENSSL_strlcpy(prompt, prompt1, len + 1);
|
||||
OPENSSL_strlcat(prompt, object_desc, len + 1);
|
||||
if (object_name != NULL) {
|
||||
|
||||
Reference in New Issue
Block a user