List Info

Thread: OpenSSL: openssl/crypto/asn1/ tasn_prn.c




OpenSSL: openssl/crypto/asn1/ tasn_prn.c
user name
2006-04-14 16:47:18
  OpenSSL CVS Repository
  http://cvs.openssl.org/
 
____________________________________________________________
________________

  Server: cvs.openssl.org                  Name:   Dr.
Stephen Henson
  Root:   /v/openssl/cvs                   Email:  steveopenssl.org
  Module: openssl                          Date:  
14-Apr-2006 18:47:18
  Branch: HEAD                             Handle:
2006041417471800

  Modified files:
    openssl/crypto/asn1     tasn_prn.c

  Log:
    Print out zero length string properly.

  Summary:
    Revision    Changes     Path
    1.11        +2  -1      openssl/crypto/asn1/tasn_prn.c
 
____________________________________________________________
________________

  patch -p0 <<' .'
  Index: openssl/crypto/asn1/tasn_prn.c
 
============================================================
================
  $ cvs diff -u -r1.10 -r1.11 tasn_prn.c
  --- openssl/crypto/asn1/tasn_prn.c	16 Sep 2005 11:45:55
-0000	1.10
  +++ openssl/crypto/asn1/tasn_prn.c	14 Apr 2006 16:47:18
-0000	1.11
   -506,7 +506,8 
   		}
   	else if (BIO_puts(out, "\n") <= 0)
   		return 0;
  -	if (BIO_dump_indent(out, (char *)str->data,
str->length,
  +	if ((str->length > 0)
  +		&& BIO_dump_indent(out, (char *)str->data,
str->length,
   				indent + 2) <= 0)
   		return 0;
   	return 1;
   .
____________________________________________________________
__________
OpenSSL Project                                 http://www.openssl.org
CVS Repository Commit List                    
openssl-cvsopenssl.org
Automated List Manager                          
majordomoopenssl.org
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )