remove unreachable code
authorNils Larsch <nils@openssl.org>
Sat, 10 Feb 2007 09:48:42 +0000 (09:48 +0000)
committerNils Larsch <nils@openssl.org>
Sat, 10 Feb 2007 09:48:42 +0000 (09:48 +0000)
crypto/asn1/t_x509.c

index 61f48d14d7731cc79ef0f9ee68e688373d0bd273..fe2ea4046d2bd297611fcc983ba60f06f3e41121 100644 (file)
@@ -445,9 +445,9 @@ err:
 int X509_NAME_print(BIO *bp, X509_NAME *name, int obase)
        {
        char *s,*c,*b;
-       int ret=0,l,ll,i,first=1;
+       int ret=0,l,i;
 
-       ll=80-2-obase;
+       l=80-2-obase;
 
        b=s=X509_NAME_oneline(name,NULL,0);
        if (!*s)
@@ -457,7 +457,6 @@ int X509_NAME_print(BIO *bp, X509_NAME *name, int obase)
                }
        s++; /* skip the first slash */
 
-       l=ll;
        c=s;
        for (;;)
                {
@@ -479,16 +478,6 @@ int X509_NAME_print(BIO *bp, X509_NAME *name, int obase)
                        (*s == '\0'))
 #endif
                        {
-                       if ((l <= 0) && !first)
-                               {
-                               first=0;
-                               if (BIO_write(bp,"\n",1) != 1) goto err;
-                               for (i=0; i<obase; i++)
-                                       {
-                                       if (BIO_write(bp," ",1) != 1) goto err;
-                                       }
-                               l=ll;
-                               }
                        i=s-c;
                        if (BIO_write(bp,c,i) != i) goto err;
                        c+=i;