remove unnecessary calls to EC_POINT_copy()
[openssl.git] / crypto / txt_db / txt_db.c
index e6334d6add9b7f5862214d313b4f6ec09805c886..9b186f2da534a57665b7d0d6722766d77e4268d3 100644 (file)
@@ -122,7 +122,7 @@ TXT_DB *TXT_DB_read(BIO *in, int num)
                else
                        {
                        buf->data[offset-1]='\0'; /* blat the '\n' */
-                       p=(char *)OPENSSL_malloc(add+offset);
+                       if (!(p=(char *)OPENSSL_malloc(add+offset))) goto err;
                        offset=0;
                        }
                pp=(char **)p;