Fix source where indent will not be able to cope
[oweals/openssl.git] / crypto / ui / ui_lib.c
index a8abc270642a92556ec8e4061d1275bc6a6887c1..41bc926ca4c6ec15a2901d3177a89bbbd5e68540 100644 (file)
@@ -431,6 +431,8 @@ char *UI_construct_prompt(UI *ui, const char *object_desc,
                len += sizeof(prompt3) - 1;
 
                prompt = (char *)OPENSSL_malloc(len + 1);
+               if (prompt == NULL)
+                       return NULL;
                BUF_strlcpy(prompt, prompt1, len + 1);
                BUF_strlcat(prompt, object_desc, len + 1);
                if (object_name)
@@ -916,9 +918,9 @@ int UI_set_result(UI *ui, UI_STRING *uis, const char *result)
                                break;
                                }
                        }
+               }
        default:
                break;
                }
-               }
        return 0;
        }