*** crypto/asn1/t_x509.c.orig	Sat Feb 10 04:48:42 2007
--- crypto/asn1/t_x509.c	Sat Feb  9 18:22:37 2008
***************
*** 449,461 ****
  
  	l=80-2-obase;
  
! 	b=s=X509_NAME_oneline(name,NULL,0);
! 	if (!*s)
  		{
  		OPENSSL_free(b);
  		return 1;
  		}
! 	s++; /* skip the first slash */
  
  	c=s;
  	for (;;)
--- 449,461 ----
  
  	l=80-2-obase;
  
! 	b=X509_NAME_oneline(name,NULL,0);
! 	if (!*b)
  		{
  		OPENSSL_free(b);
  		return 1;
  		}
! 	s=b+1; /* skip the first slash */
  
  	c=s;
  	for (;;)
***************
*** 480,487 ****
  			{
  			i=s-c;
  			if (BIO_write(bp,c,i) != i) goto err;
! 			c+=i;
! 			c++;
  			if (*s != '\0')
  				{
  				if (BIO_write(bp,", ",2) != 2) goto err;
--- 480,486 ----
  			{
  			i=s-c;
  			if (BIO_write(bp,c,i) != i) goto err;
! 			c=s+1;  /* skip following slash */
  			if (*s != '\0')
  				{
  				if (BIO_write(bp,", ",2) != 2) goto err;
