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 c4bec05..79b1ded 100644 (file)
@@ -328,13 +328,13 @@ int MAIN(int argc, char **argv)
                        else 
 #endif
 #ifndef OPENSSL_NO_ECDSA
                        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;
                                {
                                X509 *xtmp=NULL;
                                EVP_PKEY *dtmp;
 
                                pkey_type=TYPE_EC;
-                               p+=6;
+                               p+=3;
                                if ((in=BIO_new_file(p,"r")) == NULL)
                                        {
                                        perror(p);
                                if ((in=BIO_new_file(p,"r")) == NULL)
                                        {
                                        perror(p);