mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-04 04:32:24 -05:00 
			
		
		
		
	Fixes whitespace errors in x509_crl.c
This commit is contained in:
		
							parent
							
								
									930a3701e7
								
							
						
					
					
						commit
						97e829038a
					
				@ -502,14 +502,15 @@ int mbedtls_x509_crl_parse( mbedtls_x509_crl *chain, const unsigned char *buf, s
 | 
				
			|||||||
    {
 | 
					    {
 | 
				
			||||||
        mbedtls_pem_init( &pem );
 | 
					        mbedtls_pem_init( &pem );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /* Avoid calling mbedtls_pem_read_buffer() on non-null-terminated string */
 | 
					        // Avoid calling mbedtls_pem_read_buffer() on non-null-terminated
 | 
				
			||||||
    if( buflen == 0 || buf[buflen - 1] != '\0' )
 | 
					        // string
 | 
				
			||||||
        ret = MBEDTLS_ERR_PEM_NO_HEADER_FOOTER_PRESENT;
 | 
					        if( buflen == 0 || buf[buflen - 1] != '\0' )
 | 
				
			||||||
    else
 | 
					            ret = MBEDTLS_ERR_PEM_NO_HEADER_FOOTER_PRESENT;
 | 
				
			||||||
        ret = mbedtls_pem_read_buffer( &pem,
 | 
					        else
 | 
				
			||||||
                               "-----BEGIN X509 CRL-----",
 | 
					            ret = mbedtls_pem_read_buffer( &pem,
 | 
				
			||||||
                               "-----END X509 CRL-----",
 | 
					                                           "-----BEGIN X509 CRL-----",
 | 
				
			||||||
                               buf, NULL, 0, &use_len );
 | 
					                                           "-----END X509 CRL-----",
 | 
				
			||||||
 | 
					                                            buf, NULL, 0, &use_len );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if( ret == 0 )
 | 
					        if( ret == 0 )
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user