mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-04 04:32:24 -05:00 
			
		
		
		
	Prevented compiler warning on uninitialized end
This commit is contained in:
		
							parent
							
								
									d3edc86720
								
							
						
					
					
						commit
						3b6a07b745
					
				@ -774,6 +774,9 @@ static int ssl_parse_server_key_exchange( ssl_context *ssl )
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    SSL_DEBUG_BUF( 3,   "server key exchange", ssl->in_msg + 4, ssl->in_hslen - 4 );
 | 
					    SSL_DEBUG_BUF( 3,   "server key exchange", ssl->in_msg + 4, ssl->in_hslen - 4 );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    p   = ssl->in_msg + 4;
 | 
				
			||||||
 | 
					    end = ssl->in_msg + ssl->in_hslen;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if defined(POLARSSL_DHM_C)
 | 
					#if defined(POLARSSL_DHM_C)
 | 
				
			||||||
    if( ciphersuite_info->key_exchange == POLARSSL_KEY_EXCHANGE_DHE_RSA )
 | 
					    if( ciphersuite_info->key_exchange == POLARSSL_KEY_EXCHANGE_DHE_RSA )
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
@ -786,9 +789,6 @@ static int ssl_parse_server_key_exchange( ssl_context *ssl )
 | 
				
			|||||||
         *     opaque dh_Ys<1..2^16-1>;
 | 
					         *     opaque dh_Ys<1..2^16-1>;
 | 
				
			||||||
         * } ServerDHParams;
 | 
					         * } ServerDHParams;
 | 
				
			||||||
         */
 | 
					         */
 | 
				
			||||||
        p   = ssl->in_msg + 4;
 | 
					 | 
				
			||||||
        end = ssl->in_msg + ssl->in_hslen;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        if( ( ret = dhm_read_params( &ssl->handshake->dhm_ctx, &p, end ) ) != 0 )
 | 
					        if( ( ret = dhm_read_params( &ssl->handshake->dhm_ctx, &p, end ) ) != 0 )
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
            SSL_DEBUG_MSG( 2, ( "DHM Read Params returned -0x%x", -ret ) );
 | 
					            SSL_DEBUG_MSG( 2, ( "DHM Read Params returned -0x%x", -ret ) );
 | 
				
			||||||
@ -811,9 +811,6 @@ static int ssl_parse_server_key_exchange( ssl_context *ssl )
 | 
				
			|||||||
         */
 | 
					         */
 | 
				
			||||||
        ecdh_init( &ssl->handshake->ecdh_ctx );
 | 
					        ecdh_init( &ssl->handshake->ecdh_ctx );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        p   = ssl->in_msg + 4;
 | 
					 | 
				
			||||||
        end = ssl->in_msg + ssl->in_hslen;
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        if( ( ret = ecdh_read_params( &ssl->handshake->ecdh_ctx,
 | 
					        if( ( ret = ecdh_read_params( &ssl->handshake->ecdh_ctx,
 | 
				
			||||||
                                      (const unsigned char **) &p, end ) ) != 0 )
 | 
					                                      (const unsigned char **) &p, end ) ) != 0 )
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user