]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - crypto/evp/evp_key.c
Continue standardising malloc style for libcrypto
[thirdparty/openssl.git] / crypto / evp / evp_key.c
index 5c03a91a941bcfa4cfe8e323221c78c9cb202b7b..3e2c989954e76fc813eb45e8c5831dd334b0f003 100644 (file)
@@ -104,6 +104,8 @@ int EVP_read_pw_string_min(char *buf, int min, int len, const char *prompt,
     if ((prompt == NULL) && (prompt_string[0] != '\0'))
         prompt = prompt_string;
     ui = UI_new();
+    if (ui == NULL)
+        return -1;
     UI_add_input_string(ui, prompt, 0, buf, min,
                         (len >= BUFSIZ) ? BUFSIZ - 1 : len);
     if (verify)