mirror of https://github.com/openssl/openssl.git
				
				
				
			Allocate extra space when NETSCAPE_HANG_BUG defined.
Make sure there is an extra 4 bytes for server done message when
NETSCAPE_HANG_BUG is defined.
PR#3361
(cherry picked from commit 673c42b238)
			
			
This commit is contained in:
		
							parent
							
								
									8e928aab02
								
							
						
					
					
						commit
						2ce540743e
					
				|  | @ -1762,6 +1762,11 @@ int ssl3_send_certificate_request(SSL *s) | ||||||
| 		s->init_num=n+4; | 		s->init_num=n+4; | ||||||
| 		s->init_off=0; | 		s->init_off=0; | ||||||
| #ifdef NETSCAPE_HANG_BUG | #ifdef NETSCAPE_HANG_BUG | ||||||
|  | 		if (!BUF_MEM_grow_clean(buf, s->init_num + 4)) | ||||||
|  | 			{ | ||||||
|  | 			SSLerr(SSL_F_SSL3_SEND_CERTIFICATE_REQUEST,ERR_R_BUF_LIB); | ||||||
|  | 			goto err; | ||||||
|  | 			} | ||||||
| 		p=(unsigned char *)s->init_buf->data + s->init_num; | 		p=(unsigned char *)s->init_buf->data + s->init_num; | ||||||
| 
 | 
 | ||||||
| 		/* do the header */ | 		/* do the header */ | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue