fix offsets
authorBodo Möller <bodo@openssl.org>
Mon, 26 Aug 2002 11:25:14 +0000 (11:25 +0000)
committerBodo Möller <bodo@openssl.org>
Mon, 26 Aug 2002 11:25:14 +0000 (11:25 +0000)
Submitted by: Nils Larsch

apps/req.c

index c4bec05436a91a15026f2e92b6ad0b1b383ff56e..79b1ded735f39d0401b8f12c7f1bf8a2536d6bbb 100644 (file)
@@ -328,13 +328,13 @@ int MAIN(int argc, char **argv)
                        else 
 #endif
 #ifndef OPENSSL_NO_ECDSA
-                               if (strncmp("ec:",p,4) == 0)
+                               if (strncmp("ec:",p,3) == 0)
                                {
                                X509 *xtmp=NULL;
                                EVP_PKEY *dtmp;
 
                                pkey_type=TYPE_EC;
-                               p+=6;
+                               p+=3;
                                if ((in=BIO_new_file(p,"r")) == NULL)
                                        {
                                        perror(p);