]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - apps/srp.c
Check that the subject name in a proxy cert complies to RFC 3820
[thirdparty/openssl.git] / apps / srp.c
index 47b45fbf9fa942910eaed90177e2284b57cd94c5..c0ff4171cabf8e8db3de81ce4bb498e46d652a21 100644 (file)
@@ -435,10 +435,18 @@ int MAIN(int argc, char **argv)
 # ifdef OPENSSL_SYS_VMS
             len = strlen(s) + sizeof(CONFIG_FILE);
             tofree = OPENSSL_malloc(len);
+            if (!tofree) {
+                BIO_printf(bio_err, "Out of memory\n");
+                goto err;
+            }
             strcpy(tofree, s);
 # else
             len = strlen(s) + sizeof(CONFIG_FILE) + 1;
             tofree = OPENSSL_malloc(len);
+            if (!tofree) {
+                BIO_printf(bio_err, "Out of memory\n");
+                goto err;
+            }
             BUF_strlcpy(tofree, s, len);
             BUF_strlcat(tofree, "/", len);
 # endif