committed by
					
						
						Dr. Stephen Henson
					
				
			
			
				
	
			
			
			
						parent
						
							105e52bf23
						
					
				
				
					commit
					8e928aab02
				
			@@ -529,10 +529,11 @@ int ssl3_do_compress(SSL *ssl)
 | 
				
			|||||||
int ssl3_write_bytes(SSL *s, int type, const void *buf_, int len)
 | 
					int ssl3_write_bytes(SSL *s, int type, const void *buf_, int len)
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
	const unsigned char *buf=buf_;
 | 
						const unsigned char *buf=buf_;
 | 
				
			||||||
	unsigned int tot,n,nw;
 | 
						unsigned int n,nw;
 | 
				
			||||||
	int i;
 | 
						int i,tot;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	s->rwstate=SSL_NOTHING;
 | 
						s->rwstate=SSL_NOTHING;
 | 
				
			||||||
 | 
						OPENSSL_assert(s->s3->wnum < INT_MAX);
 | 
				
			||||||
	tot=s->s3->wnum;
 | 
						tot=s->s3->wnum;
 | 
				
			||||||
	s->s3->wnum=0;
 | 
						s->s3->wnum=0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -556,7 +557,7 @@ int ssl3_write_bytes(SSL *s, int type, const void *buf_, int len)
 | 
				
			|||||||
	 * buffer ... so we trap and report the error in a way the user
 | 
						 * buffer ... so we trap and report the error in a way the user
 | 
				
			||||||
	 * will notice
 | 
						 * will notice
 | 
				
			||||||
	 */
 | 
						 */
 | 
				
			||||||
	if ( len < tot)
 | 
						if (len < tot)
 | 
				
			||||||
		{
 | 
							{
 | 
				
			||||||
		SSLerr(SSL_F_SSL3_WRITE_BYTES,SSL_R_BAD_LENGTH);
 | 
							SSLerr(SSL_F_SSL3_WRITE_BYTES,SSL_R_BAD_LENGTH);
 | 
				
			||||||
		return(-1);
 | 
							return(-1);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user